diff --git a/MagickCore/channel.h b/MagickCore/channel.h
index b1b70ad..157dc23 100644
--- a/MagickCore/channel.h
+++ b/MagickCore/channel.h
@@ -18,12 +18,12 @@
 #ifndef _MAGICKCORE_CHANNEL_H
 #define _MAGICKCORE_CHANNEL_H
 
+#include <MagickCore/image.h>
+
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
-#include <MagickCore/image.h>
-
 extern MagickExport Image
   *ChannelFxImage(const Image *,const char *,ExceptionInfo *),
   *CombineImages(const Image *,const ColorspaceType,ExceptionInfo *),