Skip to content

Commit cd2e5bc

Browse files
authored
refactor: Remove _MSC_VER guards around #pragma once (#1726)
1 parent df6ebbd commit cd2e5bc

File tree

605 files changed

+172
-1242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

605 files changed

+172
-1242
lines changed

Core/Libraries/Include/rts/debug.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
//
2727
// Proxy header for debug module
2828
//////////////////////////////////////////////////////////////////////////////
29-
#ifdef _MSC_VER
30-
# pragma once
31-
#endif
29+
#pragma once
3230
#ifndef PROXY_DEBUG_H // Include guard
3331
#define PROXY_DEBUG_H
3432

Core/Libraries/Include/rts/profile.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
//
2727
// Proxy header for profile module
2828
//////////////////////////////////////////////////////////////////////////////
29-
#ifdef _MSC_VER
3029
# pragma once
31-
#endif
3230
#ifndef PROXY_PROFILE_H // Include guard
3331
#define PROXY_PROFILE_H
3432

Core/Libraries/Source/Compression/EAC/codex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
#ifndef __CODEX_H
4141
#define __CODEX_H 1
4242

43-
#if defined(_MSC_VER)
4443
#pragma once
45-
#endif
4644

4745
#ifdef __cplusplus
4846
extern "C" {

Core/Libraries/Source/Compression/EAC/gimex.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ gimex.h - Primary header file for the GIMEX API.
6666
#ifndef __GIMEX_H
6767
#define __GIMEX_H 1
6868

69-
#if defined(_MSC_VER)
7069
#pragma once
70+
71+
#if defined(_MSC_VER)
7172
#pragma warning(disable : 4100)
7273
/* warning C4100: unreferenced parameter */
7374
#endif

Core/Libraries/Source/WWVegas/WW3D2/aabtree.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
* Functions: *
3838
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
3939

40-
#if defined(_MSC_VER)
4140
#pragma once
42-
#endif
4341

4442
#ifndef AABTREE_H
4543
#define AABTREE_H

Core/Libraries/Source/WWVegas/WW3D2/agg_def.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
3434

3535

36-
#if defined(_MSC_VER)
3736
#pragma once
38-
#endif
3937

4038
#ifndef AGGREGATE_DEF_H
4139
#define AGGREGATE_DEF_H

Core/Libraries/Source/WWVegas/WW3D2/animatedsoundmgr.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
// MBL Update for CNC3 INCURSION - 10.23.2002 - Expanded param handling, Added STOP command
3838
//
3939

40-
#if defined(_MSC_VER)
4140
#pragma once
42-
#endif
4341

4442
#ifndef __ANIMATEDSOUNDMGR_H
4543
#define __ANIMATEDSOUNDMGR_H

Core/Libraries/Source/WWVegas/WW3D2/assetstatus.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
** along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#if defined(_MSC_VER)
2019
#pragma once
21-
#endif
2220

2321
#ifndef WW3D_ASSET_STATUS_H
2422
#define WW3D_ASSET_STATUS_H

Core/Libraries/Source/WWVegas/WW3D2/bitmaphandler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
** along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#if defined(_MSC_VER)
2019
#pragma once
21-
#endif
2220

2321
#ifndef BITMAPHANDLER_H
2422
#define BITMAPHANDLER_H

Core/Libraries/Source/WWVegas/WW3D2/bwrender.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
* Functions: *
3737
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
3838

39-
#if defined(_MSC_VER)
4039
#pragma once
41-
#endif
4240

4341
#ifndef BWRENDER_H
4442
#define BWRENDER_H

0 commit comments

Comments
 (0)