@@ -2,7 +2,7 @@ package Solution;
22#
33# Package that encapsulates a Visual C++ solution file generation
44#
5- # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.17 2007/03/17 14:01:01 mha Exp $
5+ # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.18 2007/03/23 08:43:51 mha Exp $
66#
77use Carp;
88use strict;
@@ -102,14 +102,15 @@ sub GenerateFiles
102102s { PG_VERSION_STR "[^"]+"} { __STRINGIFY(x) #x\n #define __STRINGIFY2(z) __STRINGIFY(z)\n #define PG_VERSION_STR "PostgreSQL $self ->{strver}, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER)} ;
103103 print O;
104104 }
105+ print O " #define LOCALEDIR \" /share/locale\"\n " if ($self -> {options }-> {nls });
105106 print O " /* defines added by config steps */\n " ;
107+ print O " #ifndef IGNORE_CONFIGURED_SETTINGS\n " ;
106108 print O " #define USE_ASSERT_CHECKING 1\n " if ($self -> {options }-> {asserts });
107109 print O " #define USE_INTEGER_DATETIMES 1\n " if ($self -> {options }-> {integer_datetimes });
108110 print O " #define USE_LDAP 1\n " if ($self -> {options }-> {ldap });
109111 print O " #define HAVE_LIBZ 1\n " if ($self -> {options }-> {zlib });
110112 print O " #define USE_SSL 1\n " if ($self -> {options }-> {openssl });
111113 print O " #define ENABLE_NLS 1\n " if ($self -> {options }-> {nls });
112- print O " #define LOCALEDIR \" /share/locale\"\n " if ($self -> {options }-> {nls });
113114
114115 if ($self -> {options }-> {xml })
115116 {
@@ -123,6 +124,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
123124 print O " #define HAVE_KRB5_TICKET_ENC_PART2 1\n " ;
124125 print O " #define PG_KRB_SRVNAM \" postgres\"\n " ;
125126 }
127+ print O " #endif /* IGNORE_CONFIGURED_SETTINGS */\n " ;
126128 close (O);
127129 close (I);
128130 }
0 commit comments