Skip to content

Commit 7a7d4da

Browse files
committed
Replace ifdef guard with pragma once in safeint.
1 parent 3ab8ae7 commit 7a7d4da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Release/include/cpprest/details/SafeInt3.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ This header compiles properly at Wall on Visual Studio, -Wall on gcc, and -Wever
5151
5252
Please read the leading comments before using the class.
5353
---------------------------------------------------------------*/
54-
#ifndef SAFEINT_HPP
55-
#define SAFEINT_HPP
54+
#pragma once
5655

5756
// It is a bit tricky to sort out what compiler we are actually using,
5857
// do this once here, and avoid cluttering the code
@@ -7042,7 +7041,6 @@ SafeInt< T, E > operator |( U lhs, SafeInt< T, E > rhs ) SAFEINT_NOTHROW
70427041
#if SAFEINT_COMPILER == CLANG_COMPILER
70437042
#pragma clang diagnostic pop
70447043
#endif
7045-
#endif //SAFEINT_HPP
70467044

70477045
} // utilities
70487046
} // safeint3

0 commit comments

Comments
 (0)