Skip to content

Commit

Permalink
Only define ARRAYSIZE if it is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Jul 30, 2024
1 parent d6ed925 commit 1120584
Showing 1 changed file with 2 additions and 0 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

0 comments on commit 1120584

Please sign in to comment.