Only include system header files if we are `_IN_LIBGTOP'.
1998-10-03 Martin Baulig <martin@home-of-linux.org> * include/glibtop/global.h: Only include system header files if we are `_IN_LIBGTOP'. (G_GNUC_NORETURN, G_GNUC_CONST, G_GNUC_UNUSED): Added those definitions if we are `_IN_LIBGTOP'.
This commit is contained in:
committed by
Martin Baulig
parent
bd4cd7b570
commit
06d907146d
@@ -1,3 +1,10 @@
|
|||||||
|
1998-10-03 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
|
* include/glibtop/global.h: Only include system header files
|
||||||
|
if we are `_IN_LIBGTOP'.
|
||||||
|
(G_GNUC_NORETURN, G_GNUC_CONST, G_GNUC_UNUSED): Added those
|
||||||
|
definitions if we are `_IN_LIBGTOP'.
|
||||||
|
|
||||||
1998-09-29 Sung-Hyun Nam <namsh@lgic.co.kr>
|
1998-09-29 Sung-Hyun Nam <namsh@lgic.co.kr>
|
||||||
|
|
||||||
* configure.in (ALL_LINGUAS): add `ko'
|
* configure.in (ALL_LINGUAS): add `ko'
|
||||||
|
@@ -51,6 +51,25 @@
|
|||||||
# define __P(protos) ()
|
# define __P(protos) ()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _IN_LIBGTOP
|
||||||
|
|
||||||
|
/* Provide macros to feature the GCC function attribute.
|
||||||
|
*/
|
||||||
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||||
|
#define G_GNUC_NORETURN \
|
||||||
|
__attribute__((noreturn))
|
||||||
|
#define G_GNUC_CONST \
|
||||||
|
__attribute__((const))
|
||||||
|
#define G_GNUC_UNUSED \
|
||||||
|
__attribute__((unused))
|
||||||
|
#else /* !__GNUC__ */
|
||||||
|
#define G_GNUC_NORETURN
|
||||||
|
#define G_GNUC_CONST
|
||||||
|
#define G_GNUC_UNUSED
|
||||||
|
#endif /* !__GNUC__ */
|
||||||
|
|
||||||
|
#endif /* _IN_LIBGTOP */
|
||||||
|
|
||||||
#if TIME_WITH_SYS_TIME
|
#if TIME_WITH_SYS_TIME
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
@@ -97,10 +116,16 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef _IN_LIBGTOP
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#endif /* _IN_LIBGTOP */
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user