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/gdbmclass.cpp

    r22067 r26653  
    4646// returns true if opened
    4747bool gdbmclass::opendatabase (const text_t &filename, int mode, int num_retrys,
    48 #ifdef __WIN32__
     48#ifdef __MSC_VER__
    4949                  bool need_filelock
    5050#else
     
    105105  char *namebuffer = gdbm_filename.getcstr();
    106106  do {
    107 #ifdef __WIN32__
     107#ifdef __MSC_VER__
    108108    gdbmfile = gdbm_open (namebuffer, block_size, gdbm_mode, 00664, NULL, (need_filelock) ? 1 : 0);
    109109#else
Note: See TracChangeset for help on using the changeset viewer.