Browse Source

msvc does not like gcc attributes

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
05a1df5154
  1. 5
      alethzero/MainFace.h

5
alethzero/MainFace.h

@ -43,8 +43,13 @@ namespace shh { class WhisperHost; }
namespace az
{
#ifndef _MSC_VER // MSVC does not like gcc compiler attributes
#define DEV_AZ_NOTE_PLUGIN(ClassName) \
static bool s_notePlugin __attribute__((unused)) = [](){ MainFace::notePlugin([](MainFace* m){ return new ClassName(m); }); return true; }()
#else
#define DEV_AZ_NOTE_PLUGIN(ClassName) \
static bool s_notePlugin = [](){ MainFace::notePlugin([](MainFace* m){ return new ClassName(m); }); return true; }()
#endif
class Plugin;
class MainFace;

Loading…
Cancel
Save