Skip to content

Commit 02f545e

Browse files
committed
project: Fix compilation with VS2013.
1 parent e1214d0 commit 02f545e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

SMP/config.h

+12-2
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,19 @@
7474
/* Define to 1 if you have the `clock_gettime' function. */
7575
/* #undef HAVE_CLOCK_GETTIME */
7676

77+
#if defined( __INTEL_COMPILER )
7778
/* Defined if underlying assembler is compatible with amd64 assembly
7879
implementations */
79-
/* #undef HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS */
80+
#define HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS 1
8081

8182
/* Defined if underlying assembler is compatible with ARM assembly
8283
implementations */
8384
/* #undef HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS */
8485

8586
/* Defined if underlying assembler is compatible with WIN64 assembly
8687
implementations */
87-
/* #undef HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS */
88+
#define HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS 1
89+
#endif
8890

8991
/* Defined for Alpha platforms */
9092
/* #undef HAVE_CPU_ARCH_ALPHA */
@@ -516,4 +518,12 @@ implementations */
516518
properly prefixed. */
517519
#define CAMELLIA_EXT_SYM_PREFIX _gcry_
518520

521+
#ifdef _MSC_VER
522+
# define inline __inline
523+
# include <crtversion.h>
524+
# if _VC_CRT_MAJOR_VERSION < 14
525+
# define snprintf _snprintf
526+
# endif
527+
#endif
528+
519529
#endif /*_GCRYPT_CONFIG_H_INCLUDED*/

0 commit comments

Comments
 (0)