diff --git a/alloca.c b/alloca.c
index 367b7fe0..cab9645b 100644
--- a/alloca.c
+++ b/alloca.c
@@ -26,7 +26,8 @@
 #endif
 
 /* If compiling with GCC 2, this file's not needed.  */
-#if defined (__GNUC__) && __GNUC__ >= 2
+#if !defined (__GNUC__) || __GNUC__ < 2
+
 /* If someone has defined alloca as a macro,
    there must be some other way alloca is supposed to work.  */
 #ifndef alloca