aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/OpenAL32.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-11-16 01:27:02 -0800
committerChris Robinson <[email protected]>2007-11-16 01:27:02 -0800
commitf43528035a5b0953a3e049e8a83cfc5dc994283f (patch)
treec7ddee0a8dab482cf0f87676cb4e3aac5818142b /OpenAL32/OpenAL32.c
parenta3ceffa7e0194e06a66b7f18c0fc6e88a5b2d52a (diff)
Check for GCC's destructor attribute before using it
Diffstat (limited to 'OpenAL32/OpenAL32.c')
-rw-r--r--OpenAL32/OpenAL32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/OpenAL32.c b/OpenAL32/OpenAL32.c
index dab7ec31..b638d945 100644
--- a/OpenAL32/OpenAL32.c
+++ b/OpenAL32/OpenAL32.c
@@ -46,6 +46,7 @@ BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
return TRUE;
}
#else
+#ifdef HAVE_GCC_DESTRUCTOR
static void my_deinit() __attribute__((destructor));
static void my_deinit()
{
@@ -59,3 +60,4 @@ static void my_deinit()
DeleteCriticalSection(&g_mutex);
}
#endif
+#endif