[xiph-cvs] cvs commit: vorbis-tools/oggenc platform.c
Michael Smith
msmith at xiph.org
Sun Jun 30 23:41:50 PDT 2002
msmith 02/06/30 23:41:50
Modified: oggenc platform.c
Log:
Borland C support. Change some ifdefs.
Revision Changes Path
1.11 +8 -2 vorbis-tools/oggenc/platform.c
Index: platform.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/platform.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- platform.c 2002/03/18 05:29:08 1.10
+++ platform.c 2002/07/01 06:41:50 1.11
@@ -108,9 +108,13 @@
#include <direct.h>
#define PATH_SEPS "/\\"
-#define stat _stat
#define mkdir(x,y) _mkdir((x))
+/* MSVC does this, borland doesn't? */
+#ifndef __BORLANDC__
+#define stat _stat
+#endif
+
#else
#define PATH_SEPS "/"
@@ -150,8 +154,10 @@
return -1;
}
}
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__BORLANDC__)
else if(!(_S_IFDIR & statbuf.st_mode)) {
+#elif defined(__BORLANDC__)
+ else if(!(S_IFDIR & statbuf.st_mode)) {
#else
else if(!S_ISDIR(statbuf.st_mode)) {
#endif
<p><p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list