Ignore:
Timestamp:
Jan 23, 2007, 4:38:18 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Added DLL initialisation code for Win32.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-load.h

    r1699 r1701  
    1414
    1515/*
    16  *  lib-load.h: preloaded library functions
     16 *  lib-load.h: preload library functions
    1717 */
    1818
     
    2929#define STR(x) #x
    3030#define ORIG(x) x##_orig
    31 #ifdef HAVE_DLFCN_H
    32 #   define NEW(x) x
    33 #else
    34 #   define NEW(x) x##_new
    35 #endif
    3631
    37 /* TODO: do the Win32 part */
    3832#ifdef HAVE_DLFCN_H
    3933#   include <dlfcn.h>
     34#   define NEW(x) x
    4035#   define LOADSYM(x) \
    4136        do { \
     
    4641        } while(0)
    4742#else
     43#   define NEW(x) x##_new
    4844#   define LOADSYM(x) \
    4945        do { \
    50             if(!ORIG(x)) \
    51                 abort(); \
     46            /* Nothing to do */ \
    5247        } while(0)
    5348#endif
Note: See TracChangeset for help on using the changeset viewer.