aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/devil/0007-remove_register_keyword_cpp17.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/devil/0007-remove_register_keyword_cpp17.patch')
-rw-r--r--vcpkg/ports/devil/0007-remove_register_keyword_cpp17.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/devil/0007-remove_register_keyword_cpp17.patch b/vcpkg/ports/devil/0007-remove_register_keyword_cpp17.patch
new file mode 100644
index 0000000..5876fe3
--- /dev/null
+++ b/vcpkg/ports/devil/0007-remove_register_keyword_cpp17.patch
@@ -0,0 +1,30 @@
+diff --git a/DevIL/src-IL/src/il_manip.cpp b/DevIL/src-IL/src/il_manip.cpp
+index 79acc99..229a692 100644
+--- a/DevIL/src-IL/src/il_manip.cpp
++++ b/DevIL/src-IL/src/il_manip.cpp
+@@ -37,9 +37,9 @@ ILushort ILAPIENTRY ilFloatToHalf(ILuint i) {
+ // of float and half (127 versus 15).
+ //
+
+- register int s = (i >> 16) & 0x00008000;
+- register int e = ((i >> 23) & 0x000000ff) - (127 - 15);
+- register int m = i & 0x007fffff;
++ int s = (i >> 16) & 0x00008000;
++ int e = ((i >> 23) & 0x000000ff) - (127 - 15);
++ int m = i & 0x007fffff;
+
+ //
+ // Now reassemble s, e and m into a half:
+diff --git a/DevIL/src-ILU/src/ilu_scaling.cpp b/DevIL/src-ILU/src/ilu_scaling.cpp
+index c2893a3..ef35c13 100644
+--- a/DevIL/src-ILU/src/ilu_scaling.cpp
++++ b/DevIL/src-ILU/src/ilu_scaling.cpp
+@@ -406,7 +406,7 @@ main(argc, argv)
+ int argc;
+ char *argv[];
+ {
+- register int c;
++ int c;
+ int optind;
+ char *optarg;
+ int xsize = 0, ysize = 0;