Fossil SCM
Add missing Jim Tcl headers
Commit
dc45d71bfe77d4d0f66196f13b42d2dc6816c28d
Parent
389f9fca5d2ffb9…
2 files changed
+5
+50
+5
| --- a/src/jim-config.h | ||
| +++ b/src/jim-config.h | ||
| @@ -0,0 +1,5 @@ | ||
| 1 | +#ifndef _JIM_CONFIG_H | |
| 2 | +#define _JIM_CONFIG_H | |
| 3 | +/*#undef HAVE_LONG_LONG*/ | |
| 4 | +/*#undef JIM_UTF8*/ | |
| 5 | +#endif |
| --- a/src/jim-config.h | |
| +++ b/src/jim-config.h | |
| @@ -0,0 +1,5 @@ | |
| --- a/src/jim-config.h | |
| +++ b/src/jim-config.h | |
| @@ -0,0 +1,5 @@ | |
| 1 | #ifndef _JIM_CONFIG_H |
| 2 | #define _JIM_CONFIG_H |
| 3 | /*#undef HAVE_LONG_LONG*/ |
| 4 | /*#undef JIM_UTF8*/ |
| 5 | #endif |
+50
| --- a/src/jim-win32compat.h | ||
| +++ b/src/jim-win32compat.h | ||
| @@ -0,0 +1,50 @@ | ||
| 1 | +#ifndef JIM_WIN32COMPAT_H | |
| 2 | +#define JIM_WIN32COMPAT_H | |
| 3 | + | |
| 4 | +/* Compatibility for Windows (mingw and msvc, not cygwin */ | |
| 5 | + | |
| 6 | +/* Note that at this point we don't yet have access to jimautoconf.h */ | |
| 7 | +#if defined(_WIN32) || def ined(WIN32) | |
| 8 | +#ifndef S | |
| 9 | +#define WIN32_LEAN_AN*dlopen(const char *path, int mode); | |
| 10 | +int dlclose(void *handle); | |
| 11 | +void *dlsym(void *handle, const char *symbol); | |
| 12 | +char *dlerror(void); | |
| 13 | + | |
| 14 | +#ifdef _MSC_VER | |
| 15 | +/* These are msvc vs gcc */ | |
| 16 | + | |
| 17 | +#if _MSC_VER >= 1000 | |
| 18 | + #pragma warning(disable:4146) | |
| 19 | +#endif | |
| 20 | + | |
| 21 | +#include <limits.h> | |
| 22 | +#define jim_wide _int64 | |
| 23 | +#ifndef LLONG_MAX | |
| 24 | + #define LLONG_MAX 9223372036854775807I64 | |
| 25 | +#endif | |
| 26 | +#ifndef LLONG_MIN | |
| 27 | + #define LLONG_MIN (-LLONG_MAX - 1I64) | |
| 28 | +#endif | |
| 29 | +#define JIM_WIDE_MIN LLONG_MIN | |
| 30 | +#define JIM_WIDE_MAX LLONG_MAX | |
| 31 | +#define JIM_WIDE_MODIFIER "I64d" | |
| 32 | +#define strcasecmp _stricmp | |
| 33 | +#define strtoull _strtoui64 | |
| 34 | +#defiTIMEVAL_Hf _snprintfinddatntf | |
| 35 | + | |
| 36 | +#include <ct timeval *tv, void *unusstruct dirent { | |
| 37 | + char *d_name;DIRENT_H ar *d_na_t info; | |
| 38 | + struct dirent result; /* d_name null iff first time */ | |
| 39 | + char *name; /* null-terminated char string */ | |
| 40 | +} DIR; | |
| 41 | + | |
| 42 | +DIR *opendir(const char *name); | |
| 43 | +int closedir(DIR *dir); | |
| 44 | +struct dirent /* _MSC_VER */ | |
| 45 | + | |
| 46 | + JIM_WIDE_MODIFIER "I64d" | |
| 47 | +##endif | |
| 48 | + | |
| 49 | +#include <limits.h>DIRENT_HNG_MAX | |
| 50 | + #define LLONG_MAX |
| --- a/src/jim-win32compat.h | |
| +++ b/src/jim-win32compat.h | |
| @@ -0,0 +1,50 @@ | |
| --- a/src/jim-win32compat.h | |
| +++ b/src/jim-win32compat.h | |
| @@ -0,0 +1,50 @@ | |
| 1 | #ifndef JIM_WIN32COMPAT_H |
| 2 | #define JIM_WIN32COMPAT_H |
| 3 | |
| 4 | /* Compatibility for Windows (mingw and msvc, not cygwin */ |
| 5 | |
| 6 | /* Note that at this point we don't yet have access to jimautoconf.h */ |
| 7 | #if defined(_WIN32) || def ined(WIN32) |
| 8 | #ifndef S |
| 9 | #define WIN32_LEAN_AN*dlopen(const char *path, int mode); |
| 10 | int dlclose(void *handle); |
| 11 | void *dlsym(void *handle, const char *symbol); |
| 12 | char *dlerror(void); |
| 13 | |
| 14 | #ifdef _MSC_VER |
| 15 | /* These are msvc vs gcc */ |
| 16 | |
| 17 | #if _MSC_VER >= 1000 |
| 18 | #pragma warning(disable:4146) |
| 19 | #endif |
| 20 | |
| 21 | #include <limits.h> |
| 22 | #define jim_wide _int64 |
| 23 | #ifndef LLONG_MAX |
| 24 | #define LLONG_MAX 9223372036854775807I64 |
| 25 | #endif |
| 26 | #ifndef LLONG_MIN |
| 27 | #define LLONG_MIN (-LLONG_MAX - 1I64) |
| 28 | #endif |
| 29 | #define JIM_WIDE_MIN LLONG_MIN |
| 30 | #define JIM_WIDE_MAX LLONG_MAX |
| 31 | #define JIM_WIDE_MODIFIER "I64d" |
| 32 | #define strcasecmp _stricmp |
| 33 | #define strtoull _strtoui64 |
| 34 | #defiTIMEVAL_Hf _snprintfinddatntf |
| 35 | |
| 36 | #include <ct timeval *tv, void *unusstruct dirent { |
| 37 | char *d_name;DIRENT_H ar *d_na_t info; |
| 38 | struct dirent result; /* d_name null iff first time */ |
| 39 | char *name; /* null-terminated char string */ |
| 40 | } DIR; |
| 41 | |
| 42 | DIR *opendir(const char *name); |
| 43 | int closedir(DIR *dir); |
| 44 | struct dirent /* _MSC_VER */ |
| 45 | |
| 46 | JIM_WIDE_MODIFIER "I64d" |
| 47 | ##endif |
| 48 | |
| 49 | #include <limits.h>DIRENT_HNG_MAX |
| 50 | #define LLONG_MAX |