summaryrefslogtreecommitdiff
path: root/cpp/src/icecpp/config.h
blob: f03b54b8eadfb40f984a52988130d1083d841298 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// **********************************************************************
//
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

//
// This configuration file is based on the one generated by the
// configure script from the gcc-2.8.1 distribution.
//

#if defined(__linux) || defined(__FreeBSD__) || defined(__sun) || defined(__hpux) || defined(__APPLE__) || defined(_AIX)
#   define HAVE_INTTYPES_H 1
#   define TIME_WITH_SYS_TIME 1
#   define HAVE_BCMP 1
#   define HAVE_BCOPY 1
#   define HAVE_BZERO 1
#   define HAVE_GETRLIMIT 1
#   define HAVE_INDEX 1
#   define HAVE_RINDEX 1
#   define HAVE_UNISTD_H 1
#elif defined(_WIN32)
#   include <malloc.h>
#   include <io.h>
#   pragma warning( disable : 4018 )
#   pragma warning( disable : 4244 )
#   define alloca _alloca
#endif

#if defined(__hpux) || defined(_AIX)
#include <alloca.h>
#endif

#if defined(__sun)
#include <alloca.h>
#include <malloc.h>
#include <strings.h>
#endif

#define HAVE_SETRLIMIT 1
#define HAVE_STRERROR 1
#define HAVE_VPRINTF 1

#define HAVE_FCNTL_H 1
#define HAVE_LIMITS_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1

#define CHAR_TYPE_SIZE 1
#define INT_TYPE_SIZE 4
#define LONG_TYPE_SIZE 4
#if defined(_WIN32)
#   define WCHAR_TYPE_SIZE 2
#elif (defined(__linux) || defined(__FreeBSD__)) && (defined(__i386) || defined(__x86_64) || defined(__sparc)) \
      || defined (__sun) || defined(__hpux) || defined(__APPLE__) || defined(_AIX)
#   define WCHAR_TYPE_SIZE 4
#else
#   error "unsupported operating system or platform"
#endif

#define TARGET_BELL 007
#define TARGET_BS 010
#define TARGET_TAB 011
#define TARGET_NEWLINE 012
#define TARGET_VT 013
#define TARGET_FF 014
#define TARGET_CR 015

static char *version_string = "2.8.1";

#define INCLUDE_DEFAULTS { { 0, 0, 0 } }
#define GCC_INCLUDE_DIR ""
#define FATAL_EXIT_CODE 33
#define SUCCESS_EXIT_CODE 0
#define PREFIX ""
#define OBJECT_SUFFIX ".cpp" // For -M option.