Skip to content

Commit

Permalink
Update common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
taku910 committed Dec 23, 2023
1 parent 96aabae commit 3c2fc66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ char (&ArraySizeHelper(const T (&array)[N]))[N];

namespace sentencepiece {
namespace util {
#ifndef OS_WIN
inline uint32 Swap32(uint32 x) { return __builtin_bswap32(x); }
#endif // OS_WIN
} // namespace util

namespace error {
Expand Down

0 comments on commit 3c2fc66

Please sign in to comment.