From 41de49eb6cafa462b3714be1f0a488920f609027 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 8 Oct 2021 14:14:28 -0400 Subject: [PATCH] [windows] use declspec(dllexport) for API --- include/notcurses/notcurses.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index e23ac3266..e8fe70e80 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -23,7 +23,11 @@ extern "C" { #define RESTRICT restrict #endif +#ifndef __MINGW64__ #define API __attribute__((visibility("default"))) +#else +#define API __declspec(dllexport) +#endif #define ALLOC __attribute__((malloc)) __attribute__((warn_unused_result)) // Get a human-readable string describing the running Notcurses version.