Revision: 7253
          http://svn.sourceforge.net/mahogany/?rev=7253&view=rev
Author:   vadz
Date:     2007-04-27 06:04:45 -0700 (Fri, 27 Apr 2007)

Log Message:
-----------
compilation fix for VC++ < 8.0

Modified Paths:
--------------
    trunk/M/lib/imap/src/osdep/nt/os_nt.h

Modified: trunk/M/lib/imap/src/osdep/nt/os_nt.h
===================================================================
--- trunk/M/lib/imap/src/osdep/nt/os_nt.h       2007-04-27 12:55:43 UTC (rev 
7252)
+++ trunk/M/lib/imap/src/osdep/nt/os_nt.h       2007-04-27 13:04:45 UTC (rev 
7253)
@@ -40,9 +40,18 @@
 #undef ERROR
 #define ERROR (long) 2         /* must match mail.h */
 
+#if _MSC_VER >= 1400
 #define strtok_r strtok_s      /* for some reason they called it this */
+#else
+/*
+   strtok() is still MT-safe in MSVC CRT so we can use it
 
+   reference r to avoid "unused local variable" warnings
+ */
+#define strtok_r(t,d,r) strtok(((r), (t)), (d))
+#endif
 
+
 #include "env_nt.h"
 #include "fs.h"
 #include "ftl.h"


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to