Changeset 26653
- Timestamp:
- 2013-01-10T15:32:53+13:00 (10 years ago)
- Location:
- main/trunk/greenstone2/common-src/src/lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/src/lib/fileutil.cpp
r21404 r26653 379 379 bool fail = false; 380 380 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 382 386 if (CopyFile (fromfilec, tofilec, FALSE) == 0) fail = true; 383 387 … … 468 472 } 469 473 470 #if def __WIN32__474 #if defined(__WIN32__) 471 475 472 476 #include <direct.h> -
main/trunk/greenstone2/common-src/src/lib/gdbmclass.cpp
r22067 r26653 46 46 // returns true if opened 47 47 bool gdbmclass::opendatabase (const text_t &filename, int mode, int num_retrys, 48 #ifdef __ WIN32__48 #ifdef __MSC_VER__ 49 49 bool need_filelock 50 50 #else … … 105 105 char *namebuffer = gdbm_filename.getcstr(); 106 106 do { 107 #ifdef __ WIN32__107 #ifdef __MSC_VER__ 108 108 gdbmfile = gdbm_open (namebuffer, block_size, gdbm_mode, 00664, NULL, (need_filelock) ? 1 : 0); 109 109 #else -
main/trunk/greenstone2/common-src/src/lib/gdbmclass.h
r22067 r26653 31 31 #include "dbclass.h" 32 32 33 #ifdef __ WIN32__33 #ifdef __MSC_VER__ 34 34 35 35 #ifdef __cplusplus -
main/trunk/greenstone2/common-src/src/lib/gsdlconf.h
r19875 r26653 36 36 #endif 37 37 38 #if defined(__ WIN32__) && !defined(__CYGWIN__)38 #if defined(__MSC_VER_) 39 39 #include "../../win32cfg.h" 40 40 #else -
main/trunk/greenstone2/common-src/src/lib/gsdlsysfuncs.h
r21325 r26653 5 5 6 6 #ifdef HAVE_CONFIG_H 7 # ifdef __ WIN32__7 # ifdef __MSC_VER__ 8 8 # include <win32cfg.h> 9 9 # else -
main/trunk/greenstone2/common-src/src/lib/gsdltools.cpp
r21967 r26653 281 281 282 282 283 #if defined(__ WIN32__)283 #if defined(__MSC_VER__) 284 284 // A very useful function to call to debug mysterious heap memory errors when 285 285 // their cause isn't clear in the Vis Studio debugger. Call it from various -
main/trunk/greenstone2/common-src/src/lib/gsdltools.h
r21454 r26653 73 73 bool perl_ok (ostream &logout); 74 74 75 #if defined(_ _WIN32__)75 #if defined(_MSC_VER) 76 76 void check_system_heap(char* title); 77 77 #endif
Note:
See TracChangeset
for help on using the changeset viewer.