projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r48: Added Microsoft Windows compatibility
[ctsim.git]
/
include
/
ct.h
diff --git
a/include/ct.h
b/include/ct.h
index 5e66c294cca6c28c365a6efbf0ffc35709f38b32..79c6ec871cfe72208da9667c9809ab451a9d7445 100644
(file)
--- a/
include/ct.h
+++ b/
include/ct.h
@@
-2,8
+2,11
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ct.h,v 1.
4 2000/05/03 19:51:41
kevin Exp $
+** $Id: ct.h,v 1.
5 2000/05/11 01:04:44
kevin Exp $
** $Log: ct.h,v $
** $Log: ct.h,v $
+** Revision 1.5 2000/05/11 01:04:44 kevin
+** Added Microsoft Windows compatibility
+**
** Revision 1.4 2000/05/03 19:51:41 kevin
** function renaming for phantoms and phantom elements
**
** Revision 1.4 2000/05/03 19:51:41 kevin
** function renaming for phantoms and phantom elements
**
@@
-34,6
+37,16
@@
#ifndef CT_H
#define CT_H
#ifndef CT_H
#define CT_H
+#ifdef _WIN32
+typedef long off_t;
+#define HAVE_STRING_H 1
+#include <fcntl.h>
+#define snprintf _snprintf
+#define vsnprintf _vsnprintf
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif