Changeset 13759

Show
Ignore:
Timestamp:
02/11/08 12:34:10 (3 months ago)
Author:
warmerdam
Message:

make vc++ builds usable from mingw (#2216)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/port/cpl_config.h.vc

    r13360 r13759  
     1 
     2/* We define this here in general so that a VC++ build will publically 
     3   declare STDCALL interfaces even if an application is built against it 
     4   using MinGW */ 
     5 
     6#ifndef CPL_DISABLE_STDCALL 
     7#  define CPL_STDCALL __stdcall 
     8#endif 
    19 
    210/* Define if you don't have vprintf but do have _doprnt.  */ 
     
    1220#define snprintf _snprintf 
    1321 
    14 /* Define to 1 if you have the `copysign' function. */ 
    1522#define HAVE_COPYSIGN 
     23 
     24/* We only redefine the following for MSVC since it actually breaks 
     25   an MinGW build using GDAL otherwise. */ 
     26#ifdef _MSC_VER 
    1627#define copysign _copysign 
    1728#define copysignf _copysign 
    1829#define copysignl _copysign 
     30#endif 
    1931 
    2032#define HAVE_GETCWD 1