Skip to content

Commit af14867

Browse files
committed
Avoid override warnings in haxe 4
Older versions of haxe do not generate overrides so they will keep showing warnings. By omitting any overrides, we prevent these warnings from showing up.
1 parent 8cd6cb8 commit af14867

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/hx/StringAlloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class IStringAlloc
1717
};
1818

1919
#ifndef HXCPP_OVERRIDE
20-
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSVC_LANG >= 201103L)
20+
#if HXCPP_API_LEVEL >= 500 && (__cplusplus >= 201103L || (defined(_MSC_VER) && _MSVC_LANG >= 201103L))
2121
#define HXCPP_OVERRIDE override
2222
#else
2323
#define HXCPP_OVERRIDE

include/hxcpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
#endif
9999
#endif
100100

101-
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSVC_LANG >= 201103L)
101+
#if HXCPP_API_LEVEL >= 500 && (__cplusplus >= 201103L || (defined(_MSC_VER) && _MSVC_LANG >= 201103L))
102102
#define HXCPP_OVERRIDE override
103103
#else
104104
#define HXCPP_OVERRIDE

0 commit comments

Comments
 (0)