diff options
| author | Michael Forney <mforney@mforney.org> | 2019-07-06 01:19:53 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-07-06 16:22:36 -0700 |
| commit | f5228a024985ef11757179d983a7a0173eb8bb18 (patch) | |
| tree | 02cf0d8f11e8056fbe6aa3e0274100cc7f101116 /pkg/libxkbcommon/patch | |
| parent | 91b1c5897d14305a3ca7233586903ee9dd0a14ae (diff) | |
libxkbcommon: Only use GCC pragmas with gcc
Diffstat (limited to 'pkg/libxkbcommon/patch')
| -rw-r--r-- | pkg/libxkbcommon/patch/0002-Only-use-GCC-pragmas-with-gcc.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkg/libxkbcommon/patch/0002-Only-use-GCC-pragmas-with-gcc.patch b/pkg/libxkbcommon/patch/0002-Only-use-GCC-pragmas-with-gcc.patch new file mode 100644 index 00000000..b6ea5b3a --- /dev/null +++ b/pkg/libxkbcommon/patch/0002-Only-use-GCC-pragmas-with-gcc.patch @@ -0,0 +1,40 @@ +From 44da6aa9a8a91c115c22458bc7bc97d0248beaeb Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Sat, 6 Jul 2019 01:18:59 -0700 +Subject: [PATCH] Only use GCC pragmas with gcc + +--- + src/ks_tables.h | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/src/ks_tables.h b/src/ks_tables.h +index a6db8de..a9f30d9 100644 +--- a/src/ks_tables.h ++++ b/src/ks_tables.h +@@ -5,8 +5,10 @@ + * https://raw.github.com/xkbcommon/libxkbcommon/master/src/ks_tables.h + */ + +-#pragma GCC diagnostic push +-#pragma GCC diagnostic ignored "-Woverlength-strings" ++#ifdef __GNUC__ ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Woverlength-strings" ++#endif + static const char *keysym_names = + "0\0" + "1\0" +@@ -2417,7 +2419,9 @@ static const char *keysym_names = + "Zstroke\0" + "zstroke\0" + ; +-#pragma GCC diagnostic pop ++#ifdef __GNUC__ ++# pragma GCC diagnostic pop ++#endif + + struct name_keysym { + xkb_keysym_t keysym; +-- +2.22.0 + |
