Prefer DllMain when in Windows
This commit is contained in:
parent
8bee7a2b7f
commit
dad7f1cf0f
12
Alc/ALc.c
12
Alc/ALc.c
@ -409,10 +409,7 @@ static void ReleaseALC(void);
|
|||||||
|
|
||||||
static void alc_initconfig(void);
|
static void alc_initconfig(void);
|
||||||
|
|
||||||
#ifdef HAVE_GCC_DESTRUCTOR
|
#if defined(_WIN32)
|
||||||
static void alc_init(void) __attribute__((constructor));
|
|
||||||
static void alc_deinit(void) __attribute__((destructor));
|
|
||||||
#elif defined(_WIN32)
|
|
||||||
static void alc_init(void);
|
static void alc_init(void);
|
||||||
static void alc_deinit(void);
|
static void alc_deinit(void);
|
||||||
|
|
||||||
@ -453,10 +450,15 @@ static void alc_destructor(void)
|
|||||||
{
|
{
|
||||||
alc_deinit();
|
alc_deinit();
|
||||||
}
|
}
|
||||||
|
#elif defined(HAVE_GCC_DESTRUCTOR)
|
||||||
|
static void alc_init(void) __attribute__((constructor));
|
||||||
|
static void alc_deinit(void) __attribute__((destructor));
|
||||||
#else
|
#else
|
||||||
#error "No static initialization available on this platform!"
|
#error "No static initialization available on this platform!"
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(HAVE_GCC_DESTRUCTOR)
|
||||||
|
static void alc_init(void) __attribute__((constructor));
|
||||||
|
static void alc_deinit(void) __attribute__((destructor));
|
||||||
#else
|
#else
|
||||||
#error "No global initialization available on this platform!"
|
#error "No global initialization available on this platform!"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user