Skip to content

Commit

Permalink
Rename fallthrough to warning_macros
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung committed Mar 28, 2024
1 parent 7f832e6 commit 19e8e53
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/gc/unix/gcenv.unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define __has_cpp_attribute(x) (0)
#endif

#include "../../inc/fallthrough.h"
#include "../../inc/warning_macros.h"

#include <algorithm>

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/gc/vxsort/vxsort.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#endif
#endif

#include "../../inc/fallthrough.h"
#include "../../inc/warning_macros.h"
#include <assert.h>
#include <immintrin.h>

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/inc/palclr_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@
typedef HMODULE NATIVE_LIBRARY_HANDLE;
#endif // HOST_WINDOWS

#include "fallthrough.h"
#include "warning_macros.h"

#endif // __PALCLR_WIN_H__
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __FALLTHROUGH_H__
#define __FALLTHROUGH_H__
#ifndef __WARNING_MACROS_H__
#define __WARNING_MACROS_H__

#ifndef FALLTHROUGH
#if __has_cpp_attribute(fallthrough)
Expand All @@ -9,4 +9,4 @@
#endif // __has_cpp_attribute(fallthrough)
#endif //!FALLTHROUGH

#endif //__FALLTHROUGH_H__
#endif //__WARNING_MACROS_H__
2 changes: 1 addition & 1 deletion src/coreclr/pal/inc/pal.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ extern bool g_arm64_atomics_present;
#define __has_cpp_attribute(x) (0)
#endif

#include "../../inc/fallthrough.h"
#include "../../inc/warning_macros.h"

#ifndef PAL_STDCPP_COMPAT

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/include/pal/palinternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ const char StackOverflowMessage[] = "Stack overflow.\n";

#endif // __cplusplus

#include "../../../../inc/fallthrough.h"
#include "../../../../inc/warning_macros.h"

DWORD PALAPI GetCurrentSessionId();

Expand Down

0 comments on commit 19e8e53

Please sign in to comment.