[windows] use declspec(dllexport) for API

pull/2250/head
nick black 3 years ago
parent e5f9600066
commit 41de49eb6c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

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

Loading…
Cancel
Save