Skip to content

Commit f57a3f9

Browse files
committed
Hack to remove build warning on MSVC 2010
Fixes LP #1700329
1 parent 9c4151c commit f57a3f9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dtool/src/dtoolbase/dtoolbase_cc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ using namespace std;
3434
#define ALWAYS_INLINE inline
3535
#define TYPENAME typename
3636
#define CONSTEXPR constexpr
37+
#define ALWAYS_INLINE_CONSTEXPR constexpr
3738
#define NOEXCEPT noexcept
3839
#define FINAL final
3940
#define OVERRIDE override
@@ -231,6 +232,9 @@ template<class T> typename remove_reference<T>::type &&move(T &&t) {
231232
// Fallbacks if features are not supported
232233
#ifndef CONSTEXPR
233234
# define CONSTEXPR INLINE
235+
# define ALWAYS_INLINE_CONSTEXPR ALWAYS_INLINE
236+
#else
237+
# define ALWAYS_INLINE_CONSTEXPR ALWAYS_INLINE CONSTEXPR
234238
#endif
235239
#ifndef NOEXCEPT
236240
# define NOEXCEPT

panda/src/express/pointerTo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class PointerTo : public PointerToBase<T> {
7070
public:
7171
typedef TYPENAME PointerToBase<T>::To To;
7272
PUBLISHED:
73-
ALWAYS_INLINE CONSTEXPR PointerTo() NOEXCEPT DEFAULT_CTOR;
73+
ALWAYS_INLINE_CONSTEXPR PointerTo() NOEXCEPT DEFAULT_CTOR;
7474
ALWAYS_INLINE PointerTo(To *ptr) NOEXCEPT;
7575
INLINE PointerTo(const PointerTo<T> &copy);
7676

@@ -133,7 +133,7 @@ class ConstPointerTo : public PointerToBase<T> {
133133
public:
134134
typedef TYPENAME PointerToBase<T>::To To;
135135
PUBLISHED:
136-
ALWAYS_INLINE CONSTEXPR ConstPointerTo() NOEXCEPT DEFAULT_CTOR;
136+
ALWAYS_INLINE_CONSTEXPR ConstPointerTo() NOEXCEPT DEFAULT_CTOR;
137137
ALWAYS_INLINE ConstPointerTo(const To *ptr) NOEXCEPT;
138138
INLINE ConstPointerTo(const PointerTo<T> &copy);
139139
INLINE ConstPointerTo(const ConstPointerTo<T> &copy);

panda/src/express/pointerToBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PointerToBase : public PointerToVoid {
3131
typedef T To;
3232

3333
protected:
34-
ALWAYS_INLINE CONSTEXPR PointerToBase() NOEXCEPT DEFAULT_CTOR;
34+
ALWAYS_INLINE_CONSTEXPR PointerToBase() NOEXCEPT DEFAULT_CTOR;
3535
INLINE PointerToBase(To *ptr);
3636
INLINE PointerToBase(const PointerToBase<T> &copy);
3737
INLINE ~PointerToBase();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy