summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-28 14:27:07 -0800
committerChris Robinson <[email protected]>2010-11-28 14:27:07 -0800
commit490d1c6a8ec45bb6cfd80f92155ae6ae93098785 (patch)
treeaeab3a5d2b3a7e14165437c2e0921797d6648575 /Alc/ALc.c
parent0e748d98d5db22d259e0803f5318fb61bc7e9c2e (diff)
Prefer GCC's constructor, even in Windows
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 938f83f7..0fab8171 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -377,6 +377,10 @@ static FILE *LogFile;
///////////////////////////////////////////////////////
// ALC Related helper functions
+#ifdef HAVE_GCC_DESTRUCTOR
+static void alc_init(void) __attribute__((constructor));
+static void alc_deinit(void) __attribute__((destructor));
+#else
#ifdef _WIN32
static void alc_init(void);
static void alc_deinit(void);
@@ -399,10 +403,6 @@ BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
}
return TRUE;
}
-#else
-#ifdef HAVE_GCC_DESTRUCTOR
-static void alc_init(void) __attribute__((constructor));
-static void alc_deinit(void) __attribute__((destructor));
#endif
#endif