Attempt to be able to compile using manual makefile AND with CMake

This commit is contained in:
Romuald Conty 2010-03-31 14:03:12 +00:00
parent 12e4d3c822
commit d3796b6531

View file

@ -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>