aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/config-vc.h
blob: 9517f72e90eca9b33181f1b2e10a1223d64923a7 (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
/* file      : libcommon/common/config-vc.h
 * copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
 * license   : GNU GPL v2; see accompanying LICENSE file
 */

/* Configuration file for Windows/VC++. */

#ifndef LIBCOMMON_COMMON_CONFIG_VC_H
#define LIBCOMMON_COMMON_CONFIG_VC_H

#define HAVE_TR1_MEMORY

/* VC++10 and later has C++11 always enabled.
 */
#if (defined(_MSC_VER) && _MSC_VER >= 1600) || \
    (defined(ODB_MSC_VER) && ODB_MSC_VER >= 1600)
#  define HAVE_CXX11
// Strongly typed enums are supported starting from VC++11.
//
#  if (defined(_MSC_VER) && _MSC_VER >= 1700) || \
      (defined(ODB_MSC_VER) && ODB_MSC_VER >= 1700)
#    define HAVE_CXX11_ENUM
#  endif
#endif

#endif /* LIBCOMMON_COMMON_CONFIG_VC_H */