forked from kingsoftgames/protobuf-ue4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fix-3.6.1.bat
16 lines (13 loc) · 917 Bytes
/
Fix-3.6.1.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off
cd %PROTOBUF_DIR%\src\google\protobuf
REM see: https://medium.com/@0xflarion/using-ue4-w-google-protocol-buffers-ae7cab820d84 step2
REM Error C4647 behavior change: __is_pod(google::protobuf::internal::AuxillaryParseTableField) has different value in previous versions \
REM Pirates C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\INCLUDE\type_traits
powershell -Command "$text=Get-Content generated_message_table_driven.h ;" ^
"$text[172]='// ' ;" ^
"$text| Set-Content generated_message_table_driven.h"
cd stubs
REM build client_android in MAC, error: undefined bswap_16 bswap_32 bswap_64
powershell -Command "$text=Get-Content port.h ;" ^
"$text[382]='#elif !defined(__GLIBC__) && !defined(__BIONIC__) && !defined(__CYGWIN__) || !defined(bswap_16)' ;" ^
"$text| Set-Content port.h"