diff --git a/indra/llkdu/llimagej2ckdu.h b/indra/llkdu/llimagej2ckdu.h
index 762476ce699f5ec0181f1a6a2d711156edf31ae9..02281152bf6e82abc992cfa83917bc64904bea61 100755
--- a/indra/llkdu/llimagej2ckdu.h
+++ b/indra/llkdu/llimagej2ckdu.h
@@ -43,7 +43,7 @@
 #pragma clang diagnostic ignored "-Wunused-private-field"
 #include "kdu_compressed.h"
 #pragma clang diagnostic pop
-#elif
+#else
 #include "kdu_compressed.h"
 #endif
 
diff --git a/indra/llkdu/llkdumem.h b/indra/llkdu/llkdumem.h
index a0d304868e9d989768b3bc514b531b987e0b8dfc..fab913d93b7af6ab12d5ea3a333f8ce88f1e0474 100755
--- a/indra/llkdu/llkdumem.h
+++ b/indra/llkdu/llkdumem.h
@@ -36,7 +36,7 @@
 #pragma clang diagnostic ignored "-Wunused-private-field"
 #include "kdu_image.h"
 #pragma clang diagnostic pop
-#elif
+#else
 #include "kdu_image.h"
 #endif
 
diff --git a/indra/llui/llrngwriter.cpp b/indra/llui/llrngwriter.cpp
index 523bc7c6677b956cf1e6cc1b120de1cfed36f97d..e4a31d6a79c957fc0dbc1be057aebb57a4a2e4ad 100755
--- a/indra/llui/llrngwriter.cpp
+++ b/indra/llui/llrngwriter.cpp
@@ -34,7 +34,7 @@
 #pragma clang diagnostic ignored "-Wdelete-incomplete"
 #include "lluictrlfactory.h"
 #pragma clang diagnostic pop
-#elif
+#else
 #include "lluictrlfactory.h"
 #endif
 
diff --git a/indra/llui/lluictrlfactory.h b/indra/llui/lluictrlfactory.h
index 17af45cc0c56aa51538887b37c0e9b4a9534c662..3ce39c947f7e87f90fcc69f98f6aec82864b8dbf 100755
--- a/indra/llui/lluictrlfactory.h
+++ b/indra/llui/lluictrlfactory.h
@@ -189,7 +189,7 @@ class LLUICtrlFactory : public LLSingleton<LLUICtrlFactory>
 #pragma clang diagnostic ignored "-Wdelete-incomplete"
 					delete view;
 #pragma clang diagnostic pop
-#elif
+#else
 					delete view;
 #endif
 					view = NULL;