Skip to content

Commit e821921

Browse files
committed
Include dlfcn.h only on unix
This is a POSIX only header, and should be included only on unix platforms
1 parent 752117e commit e821921

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifndef WIN32
1+
#ifndef _WIN32
22
#ifndef _CRT_SECURE_NO_WARNINGS
33
// silence warnings about getenv, strncpy, etc.
44
#define _CRT_SECURE_NO_WARNINGS
@@ -10,7 +10,9 @@
1010
#include "cpp_cppyy.h"
1111
#include "callcontext.h"
1212

13+
#ifndef _WIN32
1314
#include <dlfcn.h>
15+
#endif
1416

1517
// Standard
1618
#include <assert.h>

0 commit comments

Comments
 (0)