Attempt to be able to compile using manual makefile AND with CMake
This commit is contained in:
parent
12e4d3c822
commit
d3796b6531
1 changed files with 16 additions and 9 deletions
|
@ -30,15 +30,22 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#if defined (_WIN32)
|
#ifdef _WIN32
|
||||||
#if defined(nfc_EXPORTS)
|
/* Windows platform */
|
||||||
|
#ifndef _WINDLL
|
||||||
|
/* CMake compilation */
|
||||||
|
#ifdef nfc_EXPORTS
|
||||||
#define NFC_EXPORT __declspec(dllexport)
|
#define NFC_EXPORT __declspec(dllexport)
|
||||||
#else
|
#else /* nfc_EXPORTS */
|
||||||
#define NFC_EXPORT __declspec(dllimport)
|
#define NFC_EXPORT __declspec(dllimport)
|
||||||
#endif /* nfc_EXPORTS */
|
#endif /* nfc_EXPORTS */
|
||||||
#else /* defined (_WIN32) */
|
#else /* _WINDLL */
|
||||||
|
/* Manual makefile */
|
||||||
#define NFC_EXPORT
|
#define NFC_EXPORT
|
||||||
#endif
|
#endif /* _WINDLL */
|
||||||
|
#else /* _WIN32 */
|
||||||
|
#define NFC_EXPORT
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#include <nfc/nfc-types.h>
|
#include <nfc/nfc-types.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue