mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 03:09:00 +08:00
6eb35f5af3
* [xcb-render-util] add port * [libxkbfile] add port * [libxkbcommon] add port * v db * Apply suggestions from code review Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * v db Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
25 lines
862 B
Diff
25 lines
862 B
Diff
diff --git a/include/X11/extensions/XKBfile.h b/include/X11/extensions/XKBfile.h
|
|
index 1455463e6..5bcabdd14 100644
|
|
--- a/include/X11/extensions/XKBfile.h
|
|
+++ b/include/X11/extensions/XKBfile.h
|
|
@@ -83,10 +83,15 @@ typedef void (*XkbFileAddOnFunc)(
|
|
#define _XkbErrXReqFailure 25
|
|
#define _XkbErrBadImplementation 26
|
|
|
|
-extern const char * _XkbErrMessages[];
|
|
-extern unsigned _XkbErrCode;
|
|
-extern const char * _XkbErrLocation;
|
|
-extern unsigned _XkbErrData;
|
|
+#if defined(_MSC_VER) && !defined(XKBFILE_BUILD)
|
|
+#define XKBFILE_EXTERN __declspec(dllimport) extern
|
|
+#else
|
|
+#define XKBFILE_EXTERN extern
|
|
+#endif
|
|
+XKBFILE_EXTERN const char * _XkbErrMessages[];
|
|
+XKBFILE_EXTERN unsigned _XkbErrCode;
|
|
+XKBFILE_EXTERN const char * _XkbErrLocation;
|
|
+XKBFILE_EXTERN unsigned _XkbErrData;
|
|
|
|
/***====================================================================***/
|
|
|