Fix compilation on Windows
This commit is contained in:
parent
9cf831b9c5
commit
f8ac3aa68f
@ -23,7 +23,8 @@ my $build = Module::Build::WithXSpp->new(
|
|||||||
)},
|
)},
|
||||||
# _GLIBCXX_USE_C99 : to get the long long type for g++
|
# _GLIBCXX_USE_C99 : to get the long long type for g++
|
||||||
# HAS_BOOL : stops Perl/lib/CORE/handy.h from doing "# define bool char" for MSVC
|
# HAS_BOOL : stops Perl/lib/CORE/handy.h from doing "# define bool char" for MSVC
|
||||||
extra_compiler_flags => [qw(-D_GLIBCXX_USE_C99 -DHAS_BOOL)],
|
# NOGDI : prevents inclusion of wingdi.h which defines functions Polygon() and Polyline() in global namespace
|
||||||
|
extra_compiler_flags => [qw(-D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI)],
|
||||||
|
|
||||||
# Provides extra C typemaps that are auto-merged
|
# Provides extra C typemaps that are auto-merged
|
||||||
extra_typemap_modules => {
|
extra_typemap_modules => {
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#ifndef _myinit_h_
|
#ifndef _myinit_h_
|
||||||
#define _myinit_h_
|
#define _myinit_h_
|
||||||
|
|
||||||
|
// this needs to be included early for MSVC (listing it in Build.PL is not enough)
|
||||||
|
#include <ostream>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "EXTERN.h"
|
#include "EXTERN.h"
|
||||||
#include "perl.h"
|
#include "perl.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user