Skip to content

Commit 8943eae

Browse files
tamlin-mikeXottab-DUTY
authored andcommitted
Fix for smart_cast.h - it can not use pragma once (but a normal include guard works - go figure).
1 parent 2136d98 commit 8943eae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xrServerEntities/smart_cast.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Description : Smart dynamic cast
77
////////////////////////////////////////////////////////////////////////////
88

9+
// WARNING: Due to conditional include of different implementations, this file CAN NOT have a
10+
// #pragma once include guard. It can however have a marco-declared include guard.
911
#ifndef SMART_CAST_H
1012
#define SMART_CAST_H
1113

@@ -329,6 +331,6 @@ DECLARE_SPECIALIZATION(CSE_ALifeItemPDA, CSE_Abstract, cast_item_pda);
329331
#ifndef DO_NOT_DECLARE_TYPE_LIST
330332
#include "smart_cast_impl1.h"
331333
#endif
332-
#endif
334+
#endif // PURE_DYNAMIC_CAST
333335

334336
#endif // SMART_CAST_H

0 commit comments

Comments
 (0)