Skip to content

Commit

Permalink
Fix for smart_cast.h - it can not use pragma once (but a normal inclu…
Browse files Browse the repository at this point in the history
…de guard works - go figure).
  • Loading branch information
tamlin-mike authored and Xottab-DUTY committed Aug 5, 2017
1 parent 2136d98 commit 8943eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xrServerEntities/smart_cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Description : Smart dynamic cast
////////////////////////////////////////////////////////////////////////////

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

Expand Down Expand Up @@ -329,6 +331,6 @@ DECLARE_SPECIALIZATION(CSE_ALifeItemPDA, CSE_Abstract, cast_item_pda);
#ifndef DO_NOT_DECLARE_TYPE_LIST
#include "smart_cast_impl1.h"
#endif
#endif
#endif // PURE_DYNAMIC_CAST

#endif // SMART_CAST_H

0 comments on commit 8943eae

Please sign in to comment.