@@ -23,7 +23,8 @@ sub _new
23
23
VisualStudioVersion => undef ,
24
24
MinimumVisualStudioVersion => undef ,
25
25
vcver => undef ,
26
- platform => undef , };
26
+ platform => undef ,
27
+ have_stdint_h => 0};
27
28
bless ($self , $classname );
28
29
29
30
$self -> DeterminePlatform();
@@ -172,6 +173,7 @@ sub GenerateFiles
172
173
s { #define PGPRO_VERSION_STR "[^"]+"} { #define PGPRO_VERSION_STR PGPRO_PACKAGE_STR " compiled by Visual C++ build" __STRINGIFY2(_MSC_VER) ", $bits -bit"} ;
173
174
print O;
174
175
}
176
+ print O " #define HAVE_STDINT_H\n " if $self -> {have_stdint_h };
175
177
print O " #define PG_MAJORVERSION \" $self ->{majorver}\"\n " ;
176
178
print O " #define LOCALEDIR \" /share/locale\"\n "
177
179
if ($self -> {options }-> {nls });
@@ -255,14 +257,7 @@ sub GenerateFiles
255
257
{
256
258
print O " #define USE_ICU\n " ;
257
259
}
258
- if ($self -> {options }-> {libedit })
259
- {
260
- print O " #define HAVE_EDITLINE_READLINE_H\n " ;
261
- print O " #define HAVE_LIBREADLINE\n " ;
262
- print O " #define HAVE_WIN32_LIBEDIT\n " ;
263
- print O " #define HAVE_RL_FILENAME_COMPLETION_FUNCTION\n " ;
264
- print O " #define HAVE_RL_COMPLETION_MATCHES\n " ;
265
- }
260
+
266
261
print O " #define VAL_CONFIGURE \" "
267
262
. $self -> GetFakeConfigure() . " \"\n " ;
268
263
print O " #endif /* IGNORE_CONFIGURED_SETTINGS */\n " ;
@@ -761,7 +756,6 @@ sub new
761
756
$self -> {solutionFileVersion } = ' 10.00' ;
762
757
$self -> {vcver } = ' 9.00' ;
763
758
$self -> {visualStudioName } = ' Visual Studio 2008' ;
764
-
765
759
return $self ;
766
760
}
767
761
@@ -785,6 +779,7 @@ sub new
785
779
$self -> {solutionFileVersion } = ' 11.00' ;
786
780
$self -> {vcver } = ' 10.00' ;
787
781
$self -> {visualStudioName } = ' Visual Studio 2010' ;
782
+ $self -> {have_stdint_h } = 1;
788
783
789
784
return $self ;
790
785
}
@@ -809,6 +804,7 @@ sub new
809
804
$self -> {solutionFileVersion } = ' 12.00' ;
810
805
$self -> {vcver } = ' 11.00' ;
811
806
$self -> {visualStudioName } = ' Visual Studio 2012' ;
807
+ $self -> {have_stdint_h } = 1;
812
808
813
809
return $self ;
814
810
}
@@ -835,6 +831,7 @@ sub new
835
831
$self -> {visualStudioName } = ' Visual Studio 2013' ;
836
832
$self -> {VisualStudioVersion } = ' 12.0.21005.1' ;
837
833
$self -> {MinimumVisualStudioVersion } = ' 10.0.40219.1' ;
834
+ $self -> {have_stdint_h } = 1;
838
835
839
836
return $self ;
840
837
}
@@ -861,6 +858,7 @@ sub new
861
858
$self -> {visualStudioName } = ' Visual Studio 2015' ;
862
859
$self -> {VisualStudioVersion } = ' 14.0.24730.2' ;
863
860
$self -> {MinimumVisualStudioVersion } = ' 10.0.40219.1' ;
861
+ $self -> {have_stdint_h } = 1;
864
862
865
863
return $self ;
866
864
}
0 commit comments