Skip to content

Commit 4c65b30

Browse files
Update common.h
1 parent 9198f41 commit 4c65b30

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

code/logic/fossil/pizza/common.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,20 @@
1515
#ifndef FOSSIL_TEST_COMMON_H
1616
#define FOSSIL_TEST_COMMON_H
1717

18+
#define _LIBCPP_HARDENING_MODE debug
19+
20+
/* ---------- Configuration / visibility ---------- */
21+
#if defined(_WIN32) && defined(FOSSIL_PIZZA_BUILD_DLL)
22+
# define FOSSIL_PIZZA_API __declspec(dllexport)
23+
#elif defined(_WIN32) && defined(FOSSIL_PIZZA_USE_DLL)
24+
# define FOSSIL_PIZZA_API __declspec(dllimport)
25+
#else
26+
# define FOSSIL_PIZZA_API
27+
#endif
28+
1829
#ifdef __cplusplus
1930
// C++ headers
31+
#include <cstring>
2032
#include <unistd.h> // POSIX, same in C and C++
2133
#include <cfloat>
2234
#include <cstdio>

0 commit comments

Comments
 (0)