Skip to content

Commit 7d0f6ff

Browse files
author
Stephen Gutekanst
committed
correct macOS builds
Signed-off-by: Stephen Gutekanst <[email protected]>
1 parent b68517c commit 7d0f6ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/DxcSupport/WinAdapter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// Mach change start
2222
// #include "dxc/Support/WinIncludes.h"
2323
// #ifndef _WIN32
24-
#if defined(_WIN32) || defined(__clang__)
24+
#if !defined(_WIN32) || defined(__clang__)
2525
// Mach change end
2626

2727
#include "dxc/Support/Unicode.h"
@@ -35,7 +35,7 @@ void *CAllocator::Allocate(size_t nBytes) throw() { return malloc(nBytes); }
3535
void CAllocator::Free(void *p) throw() { free(p); }
3636

3737
// Mach change start
38-
#ifndef __clang__
38+
#ifndef _WIN32
3939
// Mach change end
4040
//===--------------------------- BSTR Allocation --------------------------===//
4141

lib/DxcSupport/WinFunctions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//===----------------------------------------------------------------------===//
1515

1616
// Mach change start
17-
#ifdef __clang__
17+
#if defined(__clang__) && defined(_WIN32)
1818
#include <fcntl.h>
1919
#include <map>
2020
#include <string.h>
@@ -32,7 +32,7 @@ HRESULT UInt32Mult(UINT a, UINT b, UINT *out) {
3232
*out = (uint32_t)result;
3333
return S_OK;
3434
}
35-
#endif
35+
#endif // defined(__clang__) && defined(_WIN32)
3636
// Mach change end
3737

3838
#ifndef _WIN32

0 commit comments

Comments
 (0)