equal
deleted
inserted
replaced
6 #include <stc.h> |
6 #include <stc.h> |
7 #define INIT_TEXT_SECT /* as nothing */ |
7 #define INIT_TEXT_SECT /* as nothing */ |
8 #ifdef WIN32 |
8 #ifdef WIN32 |
9 # pragma codeseg INITCODE "INITCODE" |
9 # pragma codeseg INITCODE "INITCODE" |
10 #else /* not WIN32 */ |
10 #else /* not WIN32 */ |
11 # if defined(__GNUC__) |
11 # if defined(__GNUC__) && !defined(NO_SECTION_ATTRIBUTES) |
12 # if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 |
12 # if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 |
13 # undef INIT_TEXT_SECT |
13 # undef INIT_TEXT_SECT |
14 # define INIT_TEXT_SECT __attribute__((section(".stxitext"))) |
14 # define INIT_TEXT_SECT __attribute__((section(".stxitext"))) |
15 # endif |
15 # endif |
16 # endif /* not GNUC */ |
16 # endif /* not GNUC */ |