-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.h
More file actions
53 lines (40 loc) · 1.45 KB
/
config.h
File metadata and controls
53 lines (40 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// Copyright (c) 2000-2003 Brian McNamara and Yannis Smaragdakis
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is granted without fee,
// provided that the above copyright notice and this permission notice
// appear in all source code copies and supporting documentation. The
// software is provided "as is" without any express or implied
// warranty.
#ifndef FCPP_CONFIG_DOT_H
#define FCPP_CONFIG_DOT_H
// Here we just do the kludges necessary to make stuff work with some
// compilers.
#ifdef __GNUC__
// __GNUC_MINOR__ is also available
# if __GNUC__ == 2
// g++2.95.2 has a non-conforming <iterator> library
# define FCPP_NO_STD_ITER
// g++2.95.2 has bugs that prevent namespace use in some cases
# define FCPP_NO_USE_NAMESPACE
// g++2.95.2 doesn't always support sucking in base-class names
// with 'using' declarations
# define FCPP_NO_USING_DECLS
// g++2.95.2 has other misc bugs
# define FCPP_I_AM_GCC2
# endif
#endif
// Here we do a little macro setting-up for compile-time options
#ifdef FCPP_DEFER_DEFINITIONS
# define FCPP_MAYBE_NAMESPACE_OPEN
# define FCPP_MAYBE_NAMESPACE_CLOSE
# define FCPP_MAYBE_EXTERN extern
# define FCPP_MAYBE_DEFINE(x)
#else
# define FCPP_MAYBE_NAMESPACE_OPEN namespace {
# define FCPP_MAYBE_NAMESPACE_CLOSE }
# define FCPP_MAYBE_EXTERN
# define FCPP_MAYBE_DEFINE(x) x
#endif
#endif