summaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/config.hxx
blob: 8dcb80e7970f933e27c432cefd909afd5d24b088 (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
// file      : xsde/cxx/config.hxx
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#ifndef XSDE_CXX_CONFIG_HXX
#define XSDE_CXX_CONFIG_HXX

#include <xsde/config.h>

// Macro to suppress unused variable warning.
//
#define XSDE_UNUSED(x) (void)x

// Using strtof appears to be highly non-portable.
//
#undef XSDE_STRTOF

// The snprintf() function on Win32 and WinCE is called _snprintf.
//
// Note that VC 14 introduces the snprintf() function.
//
#ifdef XSDE_SNPRINTF
#  if defined(XSDE_PLATFORM_WIN32) || defined(XSDE_PLATFORM_WINCE)
#    if !defined(_MSC_VER) || _MSC_VER < 1900
#      define snprintf _snprintf
#    endif
#  endif
#endif

#endif // XSDE_CXX_CONFIG_HXX