Browse Source

UI/updater: Fix bug with restrict keyword on VS2017

jp9000 7 years ago
parent
commit
5063644831
1 changed files with 7 additions and 1 deletions
  1. 7 1
      UI/win-update/updater/patch.cpp

+ 7 - 1
UI/win-update/updater/patch.cpp

@@ -19,7 +19,13 @@
 #include <stdint.h>
 #include <vector>
 
-#include <lzma.h>
+#ifdef _MSC_VER
+# define restrict __restrict
+# include <lzma.h>
+# undef restrict
+#else
+# include <lzma.h>
+#endif
 
 using namespace std;