libfossil
config-win32.h
Go to the documentation of this file.
1 #if !defined(_NET_FOSSIL_SCM_FSL_AUTO_CONFIG_H_INCLUDED_)
2 #define _NET_FOSSIL_SCM_FSL_AUTO_CONFIG_H_INCLUDED_ 1
3 #define FSL_AUX_SCHEMA "2015-01-24"
4 #define FSL_CONTENT_SCHEMA "2"
5 #define FSL_PACKAGE_NAME "libfossil"
6 #define FSL_LIBRARY_VERSION "0.0.1-alphabeta"
7 /* Tweak the following for your system... */
8 #define HAVE_C99_INT 0
9 #define HAVE_GETADDRINFO 1
10 #define HAVE_INET_NTOP 1
11 #define HAVE_LONG_LONG 1
12 #if !defined(_WIN32)
13 #define HAVE_DLFCN_H 1
14 #define HAVE_DLOPEN 1
15 #define HAVE_LIBDL 1
16 #define HAVE_LIBLTDL 0
17 #define HAVE_LSTAT 1
18 #define HAVE_LTDL_H 0
19 #define HAVE_LT_DLOPEN 0
20 #define HAVE_OPENDIR 1
21 #define HAVE_PIPE 1
22 #define HAVE_STAT 1
23 #ifndef _BSD_SOURCE
24 #define _BSD_SOURCE 1
25 #endif
26 #ifndef _XOPEN_SOURCE
27 #define _XOPEN_SOURCE 500
28 #endif
29 #else
30 #define HAVE_DLFCN_H 0
31 #define HAVE_DLOPEN 0
32 #define HAVE_LIBDL 0
33 #define HAVE_LIBLTDL 0
34 #define HAVE_LSTAT 0
35 #define HAVE_LTDL_H 0
36 #define HAVE_LT_DLOPEN 0
37 #define HAVE_OPENDIR 1
38 #define HAVE_PIPE 0
39 #define HAVE_STAT 0
40 #endif
41 /*_WIN32*/
42 
43 
44 #if defined(_MSC_VER)
45 #define FSL_PLATFORM_OS "windows"
46 #define FSL_PLATFORM_PLATFORM "windows"
47 #define FSL_PLATFORM_PATH_SEPARATOR ";"
48 #define FSL_CHECKOUTDB_NAME "./_FOSSIL_"
49 //define a __func__ compatibility macro
50 #if _MSC_VER < 1500 //(vc9.0; dev studio 2008)
51 //sorry; cant do much better than nothing at all on those earlier ones
52 #define __func__ "(func)"
53 #else
54 #define __func__ __FUNCTION__
55 #endif
56 //for the time being at least, don't complain about there being secure crt alternatives:
57 #ifndef _CRT_SECURE_NO_WARNINGS
58 #define _CRT_SECURE_NO_WARNINGS
59 #endif
60 //for the time being at least, don't complain about using POSIX names instead of ISO C++:
61 #pragma warning ( disable : 4996 )
62 //for the time being at least, suppresss some int conversion warnings
63 #pragma warning ( disable : 4244 ) //'fsl_size_t' to 'int'; this masks other problems that should be fixed
64 #pragma warning ( disable : 4761 ) //'integral size mismatch in argument'; more size_t problems
65 #pragma warning ( disable : 4267 ) //'size_t' to 'int'; crops up especially in 64-bit builds
66 //these were extracted from fossil's unistd.h
67 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
68 #include <io.h>
69 #elif defined(__MINGW32__)
70 #define FSL_PLATFORM_OS "mingw"
71 #define FSL_PLATFORM_PLATFORM "windows"
72 #define FSL_PLATFORM_PATH_SEPARATOR ";"
73 #define FSL_CHECKOUTDB_NAME "./.fslckout"
74 #elif defined(__CYGWIN__)
75 #define FSL_PLATFORM_OS "cygwin"
76 #define FSL_PLATFORM_PLATFORM "unix"
77 #define FSL_PLATFORM_PATH_SEPARATOR ":"
78 #define FSL_CHECKOUTDB_NAME "./_FOSSIL_"
79 #else
80 #define FSL_PLATFORM_OS "unknown"
81 #define FSL_PLATFORM_PLATFORM "unix"
82 #define FSL_PLATFORM_PATH_SEPARATOR ":"
83 #define FSL_CHECKOUTDB_NAME "./.fslckout"
84 #endif
85 
86 
87 #endif
88 /* _NET_FOSSIL_SCM_FSL_AUTO_CONFIG_H_INCLUDED_ */
89