libInit.cc
changeset 1272 c2e73e565cdb
parent 1233 a18236e7b4ce
child 1536 0be7d0b15c22
equal deleted inserted replaced
1271:e626a1b3013c 1272:c2e73e565cdb
     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 */