X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Futil.h;h=b79490e8ad4c3ff180105ea3c353c43af6bccd64;hp=4f4056660e282dd2ca457584acdc7484be597b42;hb=ebd6c0ec0ff47ac18af4ef918fd78fb8d9f19540;hpb=80224de6c2ff870ea36ff98b491223c674e4d57a diff --git a/src/util.h b/src/util.h index 4f405666..b79490e8 100644 --- a/src/util.h +++ b/src/util.h @@ -9,7 +9,11 @@ #include "config.h" #ifdef __GNUC__ -# define WIMLIBAPI __attribute__((visibility("default"))) +# if defined(__CYGWIN__) || defined(__WIN32__) +# define WIMLIBAPI __declspec(dllexport) +# else +# define WIMLIBAPI __attribute__((visibility("default"))) +# endif # define ALWAYS_INLINE inline __attribute__((always_inline)) # define PACKED __attribute__((packed)) # define FORMAT(type, format_str, args_start) \