Changeset 2527 for zzuf/trunk/src


Ignore:
Timestamp:
Jul 15, 2008, 10:16:06 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Build on HP-UX systems: disable unsupported warning flags, define _XOPEN_SOURCE_EXTENDED where appropriate, use AC_C_INLINE to avoid using the inline keyword when unsupported, and use #pragma INIT for library initialisation routines.
Location:
zzuf/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-fd.c

    r2340 r2527  
    2626/* Use this to get lseek64() on glibc systems */
    2727#define _LARGEFILE64_SOURCE
     28/* Use this to get proper prototypes on HP-UX systems */
     29#define _XOPEN_SOURCE_EXTENDED
    2830
    2931#if defined HAVE_STDINT_H
  • zzuf/trunk/src/libzzuf.c

    r2354 r2527  
    4949
    5050/* Library initialisation shit */
     51#if defined __GNUC__
    5152void _zz_init(void) __attribute__((constructor));
    5253void _zz_fini(void) __attribute__((destructor));
     54#elif defined HAVE_PRAGMA_INIT
     55#   pragma INIT "_zz_init"
     56#   pragma FINI "_zz_fini"
     57#endif
     58
    5359#if defined HAVE_WINDOWS_H
    5460BOOL WINAPI DllMain(HINSTANCE, DWORD, PVOID);
Note: See TracChangeset for help on using the changeset viewer.