[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] Changes to qemacs/qe.h
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] Changes to qemacs/qe.h |
Date: |
Wed, 15 Jun 2005 12:36:46 -0400 |
Index: qemacs/qe.h
diff -u qemacs/qe.h:1.21 qemacs/qe.h:1.22
--- qemacs/qe.h:1.21 Sat May 14 08:14:37 2005
+++ qemacs/qe.h Wed Jun 15 16:36:45 2005
@@ -627,15 +627,16 @@
/* make sure that the keyword is not disabled by glibc (TINYC case) */
#undef __attribute__
-#ifndef __attribute_used__
-#define __attribute_used__
-#endif
-
+#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
/* same method as the linux kernel... */
-#define __init_call __attribute_used__ \
- __attribute__((unused, __section__ (".initcall.init")))
-#define __exit_call __attribute_used__ \
- __attribute__((unused, __section__ (".exitcall.exit")))
+#define __init_call __attribute__((unused, __section__ (".initcall.init")))
+#define __exit_call __attribute__((unused, __section__ (".exitcall.exit")))
+#else
+#undef __attribute_used__
+#define __attribute_used__ __attribute__((__used__))
+#define __init_call __attribute_used__ __attribute__((__section__
(".initcall.init")))
+#define __exit_call __attribute_used__ __attribute__((__section__
(".exitcall.exit")))
+#endif
#define qe_module_init(fn) \
static int (*__initcall_##fn)(void) __init_call = fn
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] Changes to qemacs/qe.h,
Charlie Gordon <=