r278: msvc compatibility
[ctsim.git] / include / ctsupport.h
index 617554362cfffb3e78f9b65d7f7430a9cc3a988a..c933488a4b92c3071f92cc83ddfe15c8f559ecc2 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ctsupport.h,v 1.12 2000/12/16 03:29:02 kevin Exp $
+**  $Id: ctsupport.h,v 1.14 2000/12/17 23:09:46 kevin Exp $
 **
 **
 **  This program is free software; you can redistribute it and/or modify
@@ -34,7 +34,7 @@
 #endif
 
 #ifdef MSVC
-#define snprintf _snprintf
+#include "msvc_compat.h"
 #endif
 
 #define STR_MAX_LEN 255
@@ -82,7 +82,7 @@
 
 /*----------------------------------------------------------------------*/
 
-#ifndef O_BINARY
+#if !defined(O_BINARY) && !defined(MSVC)
 #define O_BINARY (0)
 #endif