]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 30 Jun 2011 14:59:36 +0000 (14:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 30 Jun 2011 14:59:36 +0000 (14:59 +0000)
magick/nt-base.h

index 7fc8b253ae6a35e18fc36dbc0b7d55095c35d316..a933bf6756143a95edb22cef2d496af9bcfc2424 100644 (file)
@@ -75,8 +75,10 @@ extern "C" {
 #endif
 
 #if !defined(access)
+#if defined(_VISUALC_) && (_MSC_VER >= 1400)
 #  define access(path,mode)  _access_s(path,mode)
 #endif
+#endif
 #if !defined(chdir)
 #  define chdir  _chdir
 #endif
@@ -96,8 +98,6 @@ extern "C" {
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
   !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
 #  define fseek  _fseeki64
-#else
-#  define fseek  _fseek
 #endif
 #endif
 #if !defined(fstat) && !defined(__BORLANDC__)
@@ -115,8 +115,6 @@ extern "C" {
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
   !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
 #  define ftell  _ftelli64
-#else
-#  define ftell  _ftell
 #endif
 #endif
 #if !defined(ftruncate)
@@ -195,8 +193,10 @@ extern "C" {
 #  define popen  _popen
 #endif
 #if !defined(fprintf)
+#if defined(_VISUALC_) && (_MSC_VER >= 1400)
 #define fprintf  _fprintf_s
 #endif
+#endif
 #if !defined(fprintf_l)
 #define fprintf_l  _fprintf_s_l
 #endif