dccc8ec7bfef2c039b4a99050ed8694fb787e867
[ctsim.git] / include / msvc_compat.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **      Name:         msvc_compat.h
5 **      Purpose:      Microsoft Visual C compatibility header
6 **      Author:       Kevin Rosenberg
7 **      Date Started: Dec 2000
8 **
9 **  This is part of the CTSim program
10 **  Copyright (c) 1983-2001 Kevin Rosenberg
11 **
12 **  $Id: msvc_compat.h,v 1.4 2001/01/28 19:10:18 kevin Exp $
13 **
14 **  This program is free software; you can redistribute it and/or modify
15 **  it under the terms of the GNU General Public License (version 2) as
16 **  published by the Free Software Foundation.
17 **
18 **  This program is distributed in the hope that it will be useful,
19 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 **  GNU General Public License for more details.
22 **
23 **  You should have received a copy of the GNU General Public License
24 **  along with this program; if not, write to the Free Software
25 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 ******************************************************************************/
27
28 #ifndef __MSVC_COMPAT_H
29 #define __MSVC_COMPAT_H
30
31 #ifdef MSVC
32   typedef long off_t;
33   #define HAVE_STRING_H 1
34   #define HAVE_VSNPRINTF 1
35   #include <fcntl.h>
36   #define strdup _strdup
37   #define strcasecmp _stricmp
38   #define strncasecmp _strnicmp
39   #define snprintf _snprintf
40   #define vsnprintf _vsnprintf
41   #pragma warning(disable:4786)
42 #endif
43 #endif