Skip to content

Commit 82b09ac

Browse files
committed
debug: export loglevel for external users
1 parent 77a71a1 commit 82b09ac

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/lib/debug.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#include "internal.h"
22

3-
ncloglevel_e loglevel = NCLOGLEVEL_SILENT;
3+
#ifndef __MINGW32__
4+
#define API __attribute__((visibility("default")))
5+
#else
6+
#define API __declspec(dllexport)
7+
#endif
8+
9+
API ncloglevel_e loglevel = NCLOGLEVEL_SILENT;
410

511
void notcurses_debug(const notcurses* nc, FILE* debugfp){
612
fbuf f;

0 commit comments

Comments
 (0)