Unify xplatform.h and platformdefines.h (#21389)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Fri, 18 Jan 2019 00:58:34 +0000 (16:58 -0800)
committerGitHub <noreply@github.com>
Fri, 18 Jan 2019 00:58:34 +0000 (16:58 -0800)
commit8da1974d2d9ff47e45334f359199a3d50c8e0cbb
tree0d30034577888b4d8e3c039e53c762271f2bf157
parent00f8c81034543d7e100fe0ff687aaaace9775f80
Unify xplatform.h and platformdefines.h (#21389)

* Move most of xplatform.h into platformdefines.h and clean up the interop CMake files.

* Fix build-break off Windows.

* Fix typo.

* Fix another break off-Windows.

* Fix signed/unsigned mismatch
94 files changed:
tests/src/Common/Platform/platformdefines.cpp
tests/src/Common/Platform/platformdefines.h
tests/src/Interop/ArrayMarshalling/BoolArray/CMakeLists.txt
tests/src/Interop/ArrayMarshalling/BoolArray/MarshalBoolArrayNative.cpp
tests/src/Interop/ArrayMarshalling/ByValArray/CMakeLists.txt
tests/src/Interop/ArrayMarshalling/SafeArray/CMakeLists.txt
tests/src/Interop/ArrayMarshalling/SafeArray/SafeArrayNative.cpp
tests/src/Interop/BestFitMapping/BestFitMappingNative.cpp
tests/src/Interop/BestFitMapping/CMakeLists.txt
tests/src/Interop/COM/NativeClients/Primitives/NumericTests.cpp
tests/src/Interop/COM/NativeClients/Primitives/StringTests.cpp
tests/src/Interop/DllImportAttribute/ExeFile/CMakeLists.txt
tests/src/Interop/DllImportAttribute/FileNameContainDot/CMakeLists.txt
tests/src/Interop/DllImportAttribute/FileNameContainDot/DllFile.Probe.cpp
tests/src/Interop/DllImportAttribute/Simple/CMakeLists.txt
tests/src/Interop/DllImportAttribute/Simple/DllFileProbe.cpp
tests/src/Interop/ExecInDefAppDom/CMakeLists.txt
tests/src/Interop/ExecInDefAppDom/ExecInDefAppDomDll.cpp
tests/src/Interop/FuncPtrAsDelegateParam/CMakeLists.txt
tests/src/Interop/Interop.cmake
tests/src/Interop/MarshalAPI/FunctionPointer/CMakeLists.txt
tests/src/Interop/MarshalAPI/FunctionPointer/FunctionPointerNative.cpp
tests/src/Interop/MarshalAPI/IUnknown/CMakeLists.txt
tests/src/Interop/NativeCallable/CMakeLists.txt
tests/src/Interop/NativeCallable/NativeCallableDll.cpp
tests/src/Interop/NativeLibrary/CMakeLists.txt
tests/src/Interop/NativeLibrary/NativeLibrary.cpp
tests/src/Interop/PInvoke/Array/MarshalArrayAsField/LPArrayNative/CMakeLists.txt
tests/src/Interop/PInvoke/Array/MarshalArrayAsParam/LPArrayNative/CMakeLists.txt
tests/src/Interop/PInvoke/ArrayWithOffset/CMakeLists.txt
tests/src/Interop/PInvoke/AsAny/CMakeLists.txt
tests/src/Interop/PInvoke/Attributes/LCID/CMakeLists.txt
tests/src/Interop/PInvoke/BestFitMapping/Char/BestFitMappingNative.cpp
tests/src/Interop/PInvoke/BestFitMapping/Char/CMakeLists.txt
tests/src/Interop/PInvoke/BestFitMapping/LPStr/CMakeLists.txt
tests/src/Interop/PInvoke/CriticalHandles/CMakeLists.txt
tests/src/Interop/PInvoke/DateTime/CMakeLists.txt
tests/src/Interop/PInvoke/Decimal/PInvoke/CMakeLists.txt
tests/src/Interop/PInvoke/Decimal/ReversePInvoke/CMakeLists.txt
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/CMakeLists.txt
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/CMakeLists.txt
tests/src/Interop/PInvoke/DllImportPath/CMakeLists.txt
tests/src/Interop/PInvoke/DllImportPath/DllImportPathNative.cpp
tests/src/Interop/PInvoke/ExactSpelling/CMakeLists.txt
tests/src/Interop/PInvoke/ExactSpelling/ExactSpellingNative.cpp
tests/src/Interop/PInvoke/Miscellaneous/HandleRef/CMakeLists.txt
tests/src/Interop/PInvoke/Miscellaneous/HandleRef/HandleRefNative.cpp
tests/src/Interop/PInvoke/Miscellaneous/MultipleAssembliesWithSamePInvoke/CMakeLists.txt
tests/src/Interop/PInvoke/Miscellaneous/MultipleAssembliesWithSamePInvoke/MAWSPINative.cpp
tests/src/Interop/PInvoke/NativeCallManagedComVisible/CMakeLists.txt
tests/src/Interop/PInvoke/NativeCallManagedComVisible/ComVisibleNative.cpp
tests/src/Interop/PInvoke/Primitives/Int/CMakeLists.txt
tests/src/Interop/PInvoke/Primitives/Int/PInvokeIntNative.cpp
tests/src/Interop/PInvoke/Primitives/RuntimeHandles/CMakeLists.txt
tests/src/Interop/PInvoke/Primitives/RuntimeHandles/RuntimeHandlesNative.cpp
tests/src/Interop/PInvoke/SafeHandles/CMakeLists.txt
tests/src/Interop/PInvoke/SafeHandles/Interface/CMakeLists.txt
tests/src/Interop/PInvoke/SafeHandles/Interface/InterfaceNative.cpp
tests/src/Interop/PInvoke/SafeHandles/ReleaseHandle/CMakeLists.txt
tests/src/Interop/PInvoke/SafeHandles/ReleaseHandle/ReleaseHandleNative.cpp
tests/src/Interop/PInvoke/SafeHandles/SafeHandleNative.cpp
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByOut/CMakeLists.txt
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByRef/CMakeLists.txt
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByOut/CMakeLists.txt
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByRef/CMakeLists.txt
tests/src/Interop/PInvoke/Varargs/CMakeLists.txt
tests/src/Interop/PInvoke/Variant/CMakeLists.txt
tests/src/Interop/PrimitiveMarshalling/Bool/BoolNative.cpp
tests/src/Interop/PrimitiveMarshalling/Bool/CMakeLists.txt
tests/src/Interop/PrimitiveMarshalling/EnumMarshalling/CMakeLists.txt
tests/src/Interop/PrimitiveMarshalling/EnumMarshalling/MarshalEnumNative.cpp
tests/src/Interop/PrimitiveMarshalling/UIntPtr/CMakeLists.txt
tests/src/Interop/RefCharArray/CMakeLists.txt
tests/src/Interop/RefCharArray/RefCharArrayNative.cpp
tests/src/Interop/RefInt/CMakeLists.txt
tests/src/Interop/SimpleStruct/CMakeLists.txt
tests/src/Interop/SizeConst/CMakeLists.txt
tests/src/Interop/SizeConst/SizeConstNative.cpp
tests/src/Interop/StringMarshalling/AnsiBSTR/AnsiBStrTestNative.cpp
tests/src/Interop/StringMarshalling/AnsiBSTR/CMakeLists.txt
tests/src/Interop/StringMarshalling/BSTR/BSTRTestNative.cpp
tests/src/Interop/StringMarshalling/BSTR/CMakeLists.txt
tests/src/Interop/StringMarshalling/LPSTR/CMakeLists.txt
tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp
tests/src/Interop/StringMarshalling/LPTSTR/CMakeLists.txt
tests/src/Interop/StringMarshalling/LPTSTR/LPTSTRTestNative.cpp
tests/src/Interop/StringMarshalling/UTF8/CMakeLists.txt
tests/src/Interop/StringMarshalling/UTF8/UTF8TestNative.cpp
tests/src/Interop/StringMarshalling/VBByRefStr/CMakeLists.txt
tests/src/Interop/StructMarshalling/PInvoke/CMakeLists.txt
tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/CMakeLists.txt
tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/CMakeLists.txt
tests/src/Interop/common/types.h [deleted file]
tests/src/Interop/common/xplatform.h