diff options
Diffstat (limited to 'compat/macros.hpp')
-rw-r--r-- | compat/macros.hpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/compat/macros.hpp b/compat/macros.hpp index c8fbca20..b0c7a51d 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -1,16 +1,9 @@ #pragma once -#if !defined __WINE__ -# include <QCoreApplication> -# define otr_tr(...) (QCoreApplication::translate(OTR_MODULE_NAME, __VA_ARGS__)) -# define _(...) (otr_tr(__VA_ARGS__)) -#endif - #if defined _MSC_VER -# -# define MEMORY_BARRIER _ReadWriteBarrier() +# define MEMORY_BARRIER() _ReadWriteBarrier() #else -# define MEMORY_BARRIER asm volatile("" ::: "memory") +# define MEMORY_BARRIER() asm volatile("" ::: "memory") #endif #if defined _MSC_VER @@ -52,3 +45,7 @@ #else # define OTR_FUNNAME (__PRETTY_FUNCTION__) #endif + +#if defined __cplusplus +# define thunk(...) ([&]() { __VA_ARGS__; }) +#endif |