diff --git a/MagickCore/profile.h b/MagickCore/profile.h
index 33176a6..9488548 100644
--- a/MagickCore/profile.h
+++ b/MagickCore/profile.h
@@ -18,12 +18,12 @@
 #ifndef _MAGICKCORE_PROFILE_H
 #define _MAGICKCORE_PROFILE_H
 
+#include "MagickCore/string_.h"
+
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
-#include "MagickCore/string_.h"
-
 typedef struct _ProfileInfo
   ProfileInfo;