monotone

monotone Mtn Source Tree

Root/visualc/config.h

1#ifndef CONFIG_H
2#define CONFIG_H 1
3
4#define PACKAGE "monotone"
5#define PACKAGE_STRING "monotone 0.40"
6#define PACKAGE_BUGREPORT "monotone-devel@nongnu.org"
7#define LC_MESSAGES LC_CTYPE
8#define VERSION "0.40"
9
10#ifdef _MSC_VER
11typedef unsigned long pid_t;
12typedef unsigned int os_err_t;
13// #define HAVE_EXTERN_TEMPLATE
14#define LOCALEDIR ""
15#endif
16
17/* Define if using bundled pcre */
18#define PCRE_STATIC 1
19
20/* Type to use for `s16'. */
21#define TYPE_S16 short
22
23/* Type to use for `s32'. */
24#define TYPE_S32 int
25
26/* Type to use for `s64'. */
27#define TYPE_S64 long long
28
29/* Type to use for `s8'. */
30#define TYPE_S8 char
31
32/* Type to use for `u16'. */
33#define TYPE_U16 unsigned short
34
35/* Type to use for `u32'. */
36#define TYPE_U32 unsigned int
37
38/* Type to use for `u64'. */
39#define TYPE_U64 unsigned long long
40
41/* Type to use for `u8'. */
42#define TYPE_U8 unsigned char
43
44/* MS VC outputs warnings for any function that Microsoft has decided
45 is unsafe, like strcpy, strlen, getenv, open, strdup and so on.
46 They want you to replace any of those calls with calls to the new
47 Microsoft specific "safe" versions, such as sopen_s or dupenv_s.
48 The problem with that is that no other platform has these functions,
49 so if you maintain a multi-platform source base, you're screwed.
50 The only real way around it is to either wrap all these functions
51 into your out OS neutral api, or use #defines to remap the calls.
52 Or, do the following to suppress those warnings, since they aren't
53 likely to get fixed the way Microsoft wants, and there are other
54 functions that are more widely accepted.
55*/
56#define _CRT_SECURE_NO_WARNINGS
57
58/*
59 * Disable MS specific warning C4290:
60 * C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
61 *
62 * A function is declared using exception specification, which Visual C++ accepts but does not implement.
63 * Code with exception specifications that are ignored during compilation may need to be recompiled and
64 * linked to be reused in future versions supporting exception specifications.
65 */
66#pragma warning( disable : 4290 )
67
68
69/*
70 * Disable MS specific warning C4250:
71 * Two or more members have the same name. The one in class2 is inherited because it is a base class
72 * for the other classes that contained this member.
73 * Because a virtual base class is shared among multiple derived classes, a name in a derived class
74 * dominates a name in a base class.
75 * For example, given the following class hierarchy, there are two definitions of func inherited within diamond:
76 * the vbc::func() instance through the weak class, and the dominant::func() through the dominant class.
77 * An unqualified call of func() through a diamond class object, always calls the dominate::func() instance.
78 * If the weak class were to introduce an instance of func(), neither definition would dominate, and the call would be flagged as ambiguous.
79 */
80#pragma warning( disable : 4250 )
81
82
83#endif /* CONFIG_H */

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status