mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-18 21:43:47 +00:00
Attempt to be able to compile using manual makefile AND with CMake
This commit is contained in:
@@ -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 */
|
||||||
#define NFC_EXPORT __declspec(dllexport)
|
#ifndef _WINDLL
|
||||||
#else
|
/* CMake compilation */
|
||||||
#define NFC_EXPORT __declspec(dllimport)
|
#ifdef nfc_EXPORTS
|
||||||
#endif /* nfc_EXPORTS */
|
#define NFC_EXPORT __declspec(dllexport)
|
||||||
#else /* defined (_WIN32) */
|
#else /* nfc_EXPORTS */
|
||||||
#define NFC_EXPORT
|
#define NFC_EXPORT __declspec(dllimport)
|
||||||
#endif
|
#endif /* nfc_EXPORTS */
|
||||||
|
#else /* _WINDLL */
|
||||||
|
/* Manual makefile */
|
||||||
|
#define NFC_EXPORT
|
||||||
|
#endif /* _WINDLL */
|
||||||
|
#else /* _WIN32 */
|
||||||
|
#define NFC_EXPORT
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#include <nfc/nfc-types.h>
|
#include <nfc/nfc-types.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user