use warnings;
use ExtUtils::MakeMaker;
+my @DEFINES;
+
+# Threads, Windows and 5.8.x don't seem to be best friends
+if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
+ push @DEFINES, '-DLT_MULTIPLICITY=0';
+}
+
+@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
+
my $dist = 'Lexical-Types';
my %META = (
VERSION_FROM => 'lib/Lexical/Types.pm',
ABSTRACT_FROM => 'lib/Lexical/Types.pm',
PL_FILES => {},
+ @DEFINES,
PREREQ_PM => {
'Carp' => 0,
'XSLoader' => 0,