Skip to content

Commit

Permalink
COMP: Fix compilation issue on VS2010 when PythonQt Debug build again…
Browse files Browse the repository at this point in the history
…st python Release

* Copied most of the contents of vtkPython.h to dPython.h
  • Loading branch information
John Stark authored and jcfr committed Nov 17, 2011
1 parent 65623e4 commit 7e1e07f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/dPython.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,34 @@
*/

#ifdef _DEBUG
// Include these low level headers before undefing _DEBUG. Otherwise when doing
// a debug build against a release build of python the compiler will end up
// including these low level headers without DEBUG enabled, causing it to try
// and link release versions of this low level C api.
# include <basetsd.h>
# include <assert.h>
# include <ctype.h>
# include <errno.h>
# include <io.h>
# include <math.h>
# include <sal.h>
# include <stdarg.h>
# include <stddef.h>
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <sys/stat.h>
# include <time.h>
# include <wchar.h>
# undef _DEBUG
# if defined(_MSC_VER) && _MSC_VER >= 1400
# define _CRT_NOFORCE_MANIFEST 1
# define _CRT_NOFORCE_MANIFEST 1
# endif
# include <Python.h>
# define _DEBUG
#else
# include <Python.h>
#endif


#endif

0 comments on commit 7e1e07f

Please sign in to comment.