Ignore:
Timestamp:
2013-01-10T15:32:53+13:00 (11 years ago)
Author:
davidb
Message:

Code changed from using WIN32 use to _MSC_VER (the difference being the former is set for any Windows based compiler, whilst the latter is specifically set by a MicroSoft Visual Studio compiler). Up to this point the difference was not important, however to allow for cross-compilation (using mingw under Linux to produce native Windows binaries) the difference is imporant, and needs to be used more carefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/src/lib/fileutil.cpp

    r21404 r26653  
    379379  bool fail = false;
    380380
    381 #ifdef __WIN32__
     381#ifdef _MSC_VER
     382  // Use this block of code only for compilation under Windows
     383  // with MS Visual Studio.  Copilation under Windows with a compiler
     384  // like minGW needs to go to the 'else' block
     385
    382386  if (CopyFile (fromfilec, tofilec, FALSE) == 0) fail = true;
    383387
     
    468472}
    469473
    470 #ifdef __WIN32__
     474#if defined(__WIN32__)
    471475
    472476#include <direct.h>
Note: See TracChangeset for help on using the changeset viewer.