diff options
author | Chris Robinson <[email protected]> | 2011-06-16 05:34:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-16 05:34:13 -0700 |
commit | dad7f1cf0f507a3a1170159b2f1e72f8ad372d52 (patch) | |
tree | eeabf2a73d013b0d711bc469e6fe207e047dcc16 /Alc | |
parent | 8bee7a2b7f6ab60e08f2f2fc8e0dc2d39563c006 (diff) |
Prefer DllMain when in Windows
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -409,10 +409,7 @@ static void ReleaseALC(void); static void alc_initconfig(void); -#ifdef HAVE_GCC_DESTRUCTOR -static void alc_init(void) __attribute__((constructor)); -static void alc_deinit(void) __attribute__((destructor)); -#elif defined(_WIN32) +#if defined(_WIN32) static void alc_init(void); static void alc_deinit(void); @@ -453,10 +450,15 @@ static void alc_destructor(void) { alc_deinit(); } +#elif defined(HAVE_GCC_DESTRUCTOR) +static void alc_init(void) __attribute__((constructor)); +static void alc_deinit(void) __attribute__((destructor)); #else #error "No static initialization available on this platform!" #endif - +#elif defined(HAVE_GCC_DESTRUCTOR) +static void alc_init(void) __attribute__((constructor)); +static void alc_deinit(void) __attribute__((destructor)); #else #error "No global initialization available on this platform!" #endif |