aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-14 08:47:53 -0700
committerChris Robinson <[email protected]>2011-06-14 08:47:53 -0700
commit264274685ad01c861e02c7687baef737e18fa716 (patch)
tree31dc766eb94d8dd90ae84f0464aadb15171e45d9
parent1babf2849162d6f7d0f232dfc47888d7077fb356 (diff)
Throw an error when no global initialization is available
-rw-r--r--Alc/ALc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 57b7ab37..5e541351 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -430,8 +430,7 @@ static void ReleaseALC(void);
#ifdef HAVE_GCC_DESTRUCTOR
static void alc_init(void) __attribute__((constructor));
static void alc_deinit(void) __attribute__((destructor));
-#else
-#ifdef _WIN32
+#elif defined(_WIN32)
static void alc_init(void);
static void alc_deinit(void);
@@ -470,8 +469,12 @@ static void alc_destructor(void)
{
alc_deinit();
}
+#else
+#error "No static initialization available on this platform!"
#endif
-#endif
+
+#else
+#error "No global initialization available on this platform!"
#endif
static void alc_init(void)