on master help sign in
Refined to ensure that redefinition only occurs in Win64 (mingw-w64)
2ec03dfStuart Mills
libyaml/api.c+2−2
@@ -5,9 +5,9 @@
5 * Get the library version.
5 * Get the library version.
6 */
6 */
7
7
8−#if __x86_64__
8+#if _WIN64
9#define STRDUP _strdup
9#define STRDUP _strdup
10−#pragma message ("64 bits")
10+#pragma message ("Windows 64 bits")
11#else
11#else
12#define STRDUP strdup
12#define STRDUP strdup
13#pragma message "32 bits"
13#pragma message "32 bits"