git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59016
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define _WX_PRIVATE_FLAGSCHECK_H_
#include "wx/debug.h"
#define _WX_PRIVATE_FLAGSCHECK_H_
#include "wx/debug.h"
+
+// IBM xlC 8 can't parse the template syntax
+#if !defined(__IBMCPP__)
+
#include "wx/meta/if.h"
namespace wxPrivate
#include "wx/meta/if.h"
namespace wxPrivate
//
// NB: If any of this doesn't compile with your compiler and would be too
// hard to make work, it's probably best to disable this code and replace
//
// NB: If any of this doesn't compile with your compiler and would be too
// hard to make work, it's probably best to disable this code and replace
-// the macros below with empty stubs, this isn't anything criticial.
+// the macros below with empty stubs, this isn't anything critical.
template<int val> struct FlagsHaveConflictingValues
{
template<int val> struct FlagsHaveConflictingValues
{
#define wxADD_FLAG(f, others) \
::wxPrivate::SafelyAddToMask<f, others>::value
#define wxADD_FLAG(f, others) \
::wxPrivate::SafelyAddToMask<f, others>::value
+#else
+ #define wxADD_FLAG(f, others) (f | others)
+#endif
+
// Checks if flags value 'f' is within the mask of allowed values
#define wxASSERT_VALID_FLAGS(f, mask) \
wxASSERT_MSG( (f & mask) == f, \
// Checks if flags value 'f' is within the mask of allowed values
#define wxASSERT_VALID_FLAGS(f, mask) \
wxASSERT_MSG( (f & mask) == f, \