- remove SWIG kludge on Windows (#4388)

- do not define SWIGWORDSIZE64 on Windows
This commit is contained in:
Paolo Tosco
2021-08-07 06:06:02 +02:00
committed by GitHub
parent c8c0f1b296
commit f09e12765b
4 changed files with 2 additions and 40 deletions

View File

@@ -31,25 +31,6 @@
*/
%module RDKFuncs
#if defined(SWIGWORDSIZE64)
%{
// There's a problem with SWIG, 64bit windows, and modern VC++ versions
// This fine, fine piece of code fixes that.
// it's ok to think this is horrible, we won't mind
#ifdef _MSC_VER
#ifndef LONG_MAX
#include <limits.h>
#endif
#if LONG_MAX==INT_MAX
#define LONG_MAX (INT_MAX+1)
#endif
#endif
%}
#endif
/* Suppress the unimportant warnings */
#pragma SWIG nowarn=503,516