Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure to include stdint.h with VS 2010 or newer #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions Int64.xs
Expand Up @@ -27,6 +27,10 @@ static int may_use_native;
#ifdef _MSC_VER
#include <stdlib.h>

#if _MSC_VER >= 1600
#include <stdint.h>
#endif

#ifndef INT64_MAX
#define INT64_MAX _I64_MAX
#endif
Expand Down
4 changes: 3 additions & 1 deletion Makefile.PL
Expand Up @@ -133,9 +133,11 @@ sub postamble {
$author = join( ', ', @$author ) if ref $author;
$author =~ s/'/'\''/g;

$author = ($^O eq 'MSWin32') ? qq{"$author"} : qq{'$author'};

return <<"MAKE_FRAG";
c_api.h: c_api.decl
perl -MModule::CAPIMaker -emake_c_api module_name=\$(NAME) module_version=\$(VERSION) author='$author'
perl -MModule::CAPIMaker -emake_c_api module_name=\$(NAME) module_version=\$(VERSION) author=$author
MAKE_FRAG
}

Expand Down