Changes to qemacs/qe.h
Charlie Gordon <[email protected]> Sat, 14 May 2005 04:14:37 -0400
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Index: qemacs/qe.h
diff -u qemacs/qe.h:1.20 qemacs/qe.h:1.21
--- qemacs/qe.h:1.20 Fri May 13 10:05:24 2005
+++ qemacs/qe.h Sat May 14 08:14:37 2005
@@ -627,9 +627,15 @@
/* make sure that the keyword is not disabled by glibc (TINYC case) */
#undef __attribute__
+#ifndef __attribute_used__
+#define __attribute_used__
+#endif
+
/* same method as the linux kernel... */
-#define __init_call __attribute__ ((unused,__section__ (".initcall.init")))
-#define __exit_call __attribute__ ((unused,__section__ (".exitcall.exit")))
+#define __init_call __attribute_used__ \
+ __attribute__((unused, __section__ (".initcall.init")))
+#define __exit_call __attribute_used__ \
+ __attribute__((unused, __section__ (".exitcall.exit")))
#define qe_module_init(fn) \
static int (*__initcall_##fn)(void) __init_call = fn