Skip to content

Commit

Permalink
Fix last define warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Jul 30, 2024
1 parent 813620a commit bf0d828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dependencies/dxcompiler/include/WinAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
#define CoTaskMemAlloc malloc
#define CoTaskMemFree free

#ifndef ARRAYSIZE
#define ARRAYSIZE(array) (sizeof(array) / sizeof(array[0]))
#endif // ARRAYSIZE

#define _countof(a) (sizeof(a) / sizeof(*(a)))

Expand Down
2 changes: 0 additions & 2 deletions Source/Base/Base/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,5 @@ static_assert(false, "Please add PRAGMA_ENABLE_OPTIMIZATION/PRAGMA_DISABLE_OPTIM
#ifndef strcpy_s
#define strcpy_s(dest, count) strcpy((dest), (count))
#endif // strcpy_s
#ifndef ARRAYSIZE
#define ARRAYSIZE(arr) (sizeof(arr)/sizeof(arr[0]))
#endif // ARRAYSIZE
#endif

0 comments on commit bf0d828

Please sign in to comment.