Ignore:
Timestamp:
Dec 20, 2009, 1:24:56 PM (11 years ago)
Author:
Sam Hocevar
Message:

Try to call _zz_init() as soon as possible. Otherwise, preloaded libraries
might be confused about half the calls actually working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/libzzuf.h

    r4112 r4152  
    2727extern int _zz_autoinc;
    2828
     29/* Library initialisation shit */
     30#if defined __GNUC__
     31extern void _zz_init(void) __attribute__((constructor));
     32extern void _zz_fini(void) __attribute__((destructor));
     33#elif defined HAVE_PRAGMA_INIT
     34#   pragma INIT "_zz_init"
     35#   pragma FINI "_zz_fini"
     36#endif
     37
    2938/* This function is needed to initialise memory functions */
    3039extern void _zz_mem_init(void);
Note: See TracChangeset for help on using the changeset viewer.