diff --git a/MagickCore/quantum.h b/MagickCore/quantum.h
index ba949a7..5f2ee68 100644
--- a/MagickCore/quantum.h
+++ b/MagickCore/quantum.h
@@ -18,13 +18,13 @@
 #ifndef _MAGICKCORE_QUANTUM_H
 #define _MAGICKCORE_QUANTUM_H
 
+#include "MagickCore/image.h"
+#include "MagickCore/semaphore.h"
+
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
-#include "MagickCore/image.h"
-#include "MagickCore/semaphore.h"
-
 typedef enum
 {
   UndefinedEndian,