diff --git a/magick/thread_.h b/magick/thread_.h
index 1003a66..063bd36 100644
--- a/magick/thread_.h
+++ b/magick/thread_.h
@@ -24,7 +24,7 @@
#if defined(MAGICKCORE_HAVE_PTHREAD)
typedef pthread_t MagickThreadType;
-#elif defined(MAGICKORE_HAVE_WINTHREADS)
+#elif defined(MAGICKCORE_HAVE_WINTHREADS)
typedef DWORD MagickThreadType;
#else
typedef pid_t MagickThreadType;
@@ -32,7 +32,7 @@
#if defined(MAGICKCORE_HAVE_PTHREAD)
typedef pthread_key_t MagickThreadKey;
-#elif defined(MAGICKORE_HAVE_WINTHREADS)
+#elif defined(MAGICKCORE_HAVE_WINTHREADS)
typedef DWORD MagickThreadKey;
#else
typedef unsigned long *MagickThreadKey;