Skip to content

Commit

Permalink
Fix sample plugin compilation with visual studio
Browse files Browse the repository at this point in the history
  • Loading branch information
4144 committed Mar 7, 2022
1 parent 52c0c47 commit aa110fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-DTESTVAR -DTESTVAR2=2 #PLUGINFLAGS
*/

#ifndef WIN32

// check is TESTVAR defined from custom compile flags
#ifndef TESTVAR
#error TESTVAR not defined
Expand All @@ -33,6 +35,8 @@
#error TESTVAR2 not defined
#endif

#endif // WIN32

/// Sample Hercules Plugin

#include "common/hercules.h" /* Should always be the first Hercules file included! (if you don't make it first, you won't be able to use interfaces) */
Expand Down

0 comments on commit aa110fd

Please sign in to comment.