Skip to content

Commit

Permalink
Protect against RMFEXPORT being defined already
Browse files Browse the repository at this point in the history
We define RMFEXPORT when building SWIG wrappers,
and SWIG 4.1 now reports a fatal error when it is
redefined, so be sure to undefine it first.
  • Loading branch information
benmwebb committed Oct 27, 2022
1 parent 21ac109 commit 462d25c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
#ifndef RMF_CONFIG_H
#define RMF_CONFIG_H

/* Protect against RMFEXPORT being defined already */
#ifdef RMFEXPORT
#undef RMFEXPORT
#endif

#ifdef _MSC_VER

#ifdef RMF_EXPORTS
Expand Down

0 comments on commit 462d25c

Please sign in to comment.