]> git.wh0rd.org - fontconfig.git/blobdiff - src/fccfg.c
Check also for DLL_EXPORT as indication of being built as a DLL on Win32.
[fontconfig.git] / src / fccfg.c
index cbb6ecbc8281a22d77df19e77615ce7eddb10f0c..a933f9d70f047060f6e02fb1b74901195df289ba 100644 (file)
 #undef STRICT
 #endif
 
+#if defined (_WIN32) && !defined (R_OK)
+#define R_OK 4
+#endif
+
 FcConfig    *_fcConfig;
 
 FcConfig *
@@ -1371,7 +1375,7 @@ FcConfigSubstitute (FcConfig      *config,
     return FcConfigSubstituteWithPat (config, p, 0, kind);
 }
 
-#if defined (_WIN32) && defined (PIC)
+#if defined (_WIN32) && (defined (PIC) || defined (DLL_EXPORT))
 
 static FcChar8 fontconfig_path[1000] = "";