Taken from sources in CVS at: https://sourceforge.net/projects/rocketworkbench/ Sources extracted in two steps: 1. Pull entire project tree into a subdir "rwb" via "rsync": rsync -a a.cvs.sourceforge.net::cvsroot/rocketworkbench/ rwb/. 2. Export sources: export CVSROOT=$(pwd)/rwb SUBDIRS="analyser cpropep cpropep-web CVSROOT data libcompat libcpropep libnum libsimulation libthermo prop rocketworkbench rockflight" mkdir rwbx; cd rwbx cvs export -D now ${SUBDIRS} After this (and some backups for safety), the directory content was added to a Git repo: git init . git add *
69 lines
1.2 KiB
C
69 lines
1.2 KiB
C
#ifndef COMPAT_H
|
|
#define COMPAT_H
|
|
|
|
/*
|
|
Checking for _MSC_VER will detect whether MSVC++ is being used.
|
|
I don't know of the other compiler flags, so others will want to
|
|
add to this for their own compilers.
|
|
|
|
Mark Pinese 24/4/2000
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
/* MSVC++ 6.0 Std */
|
|
#define STRNCASECMP _strnicmp
|
|
|
|
/* add for MSVC++ 5.0 */
|
|
#define STRCASECMP _stricmp
|
|
|
|
#ifdef _DEBUG
|
|
#include <crtdbg.h>
|
|
#endif /* defined (_DEBUG) */
|
|
|
|
#ifndef __cplusplus
|
|
typedef enum
|
|
{
|
|
false = 0,
|
|
true = 1
|
|
} bool;
|
|
#endif /* !defined (__cplusplus) */
|
|
|
|
#endif /* define _MSC_VER */
|
|
|
|
#ifdef GCC
|
|
|
|
#define STRCASECMP strcasecmp
|
|
#define STRNCASECMP strncasecmp
|
|
#define __min(a, b) ( (a) <= (b) ? (a) : (b))
|
|
#define __max(a, b) ( (a) >= (b) ? (a) : (b))
|
|
|
|
typedef enum
|
|
{
|
|
false = 0,
|
|
true = 1
|
|
} bool;
|
|
|
|
#endif /* define GCC */
|
|
|
|
#ifdef BORLAND
|
|
|
|
int StrNCaseCmp(const char *s1, const char *s2, size_t sz);
|
|
|
|
#define STRNCASECMP StrNCaseCmp
|
|
#define __min(a, b) ( (a) <= (b) ? (a) : (b))
|
|
#define __max(a, b) ( (a) >= (b) ? (a) : (b))
|
|
|
|
typedef enum
|
|
{
|
|
false = 0,
|
|
true = 1
|
|
} bool;
|
|
|
|
#endif /* define BORLAND */
|
|
|
|
|
|
#endif /* !defined(COMPAT_H) */
|