Changeset: e8c137e24460 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e8c137e24460
Modified Files:
NT/installer32/MonetDB5-Geom-Module.vdproj
NT/installer64/MonetDB5-Geom-Module.vdproj
buildtools/autogen/autogen/msc.py
clients/mapiclient/mclient.c
clients/mapilib/mapi.c
common/options/monet_options.mx
gdk/gdk.mx
Branch: default
Log Message:
Merge with Apr2011 branch.
diffs (274 lines):
diff --git a/NT/Makefile b/NT/Makefile
--- a/NT/Makefile
+++ b/NT/Makefile
@@ -33,6 +33,7 @@
$(INSTALL) ..\NT\installer$(bits)\*.sln "$(prefix)"
$(INSTALL) ..\NT\installer$(bits)\*.vdproj "$(prefix)"
-if exist "C:\Program Files (x86)" if $(bits)==32 cd
"$(prefix)"&&C:\cygwin\bin\sed.exe -i "s/Program Files/Program Files (x86)/"
*.vdproj
+ if not exist "C:\Program Files (x86)\Microsoft Visual Studio 10.0" if
not exist "C:\Program Files\Microsoft Visual Studio 10.0" cd
"$(prefix)"&&C:\cygwin\bin\sed.exe -i "s/Format Version 11.00/Format Version
10.00/;s/Visual Studio 2010/Visual Studio 2008/;s/-vs10//;s/_VC100_/_VC90_/"
*.vdproj *.sln
$(srcdir)\Makefile.msc: "$(srcdir)\Makefile.ag"
cd "$(srcdir)"&&set PYTHONPATH=buildtools\autogen&&python
buildtools\autogen\autogen.py
diff --git a/NT/installer32/MonetDB5-Geom-Module.vdproj
b/NT/installer32/MonetDB5-Geom-Module.vdproj
--- a/NT/installer32/MonetDB5-Geom-Module.vdproj
+++ b/NT/installer32/MonetDB5-Geom-Module.vdproj
@@ -211,8 +211,8 @@
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_4FC22BC37061413FA8B8F80F91330E61"
{
- "SourcePath" = "8:lib\\monetdb5\\autoload\\50_geom.mal"
- "TargetName" = "8:50_geom.mal"
+ "SourcePath" = "8:lib\\monetdb5\\autoload\\30_geom.mal"
+ "TargetName" = "8:30_geom.mal"
"Tag" = "8:"
"Folder" = "8:_8FBEE32B5DFA4DCEA7CA122FC483D244"
"Condition" = "8:"
diff --git a/NT/installer64/MonetDB5-Geom-Module.vdproj
b/NT/installer64/MonetDB5-Geom-Module.vdproj
--- a/NT/installer64/MonetDB5-Geom-Module.vdproj
+++ b/NT/installer64/MonetDB5-Geom-Module.vdproj
@@ -211,8 +211,8 @@
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_4FC22BC37061413FA8B8F80F91330E61"
{
- "SourcePath" = "8:lib\\monetdb5\\autoload\\50_geom.mal"
- "TargetName" = "8:50_geom.mal"
+ "SourcePath" = "8:lib\\monetdb5\\autoload\\30_geom.mal"
+ "TargetName" = "8:30_geom.mal"
"Tag" = "8:"
"Folder" = "8:_8FBEE32B5DFA4DCEA7CA122FC483D244"
"Condition" = "8:"
diff --git a/NT/monetdb_config.h.in b/NT/monetdb_config.h.in
--- a/NT/monetdb_config.h.in
+++ b/NT/monetdb_config.h.in
@@ -454,6 +454,8 @@
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
+#define strdup(s) _strdup(s)
+
#ifndef strcasecmp
#define strcasecmp(x,y) _stricmp(x,y)
#endif
@@ -645,7 +647,13 @@
#include <sys/stat.h>
#define lstat _stat64
+#ifdef stat
+#undef stat
+#endif
#define stat _stat64
+#ifdef fstat
+#undef fstat
+#endif
#define fstat _fstat64
#ifndef S_ISREG /* swig-generated source file doesn't include us first
*/
#define S_ISREG(mode) (((mode) & _S_IFMT) == _S_IFREG)
diff --git a/buildtools/Mx/Mx.h b/buildtools/Mx/Mx.h
--- a/buildtools/Mx/Mx.h
+++ b/buildtools/Mx/Mx.h
@@ -38,12 +38,6 @@
#ifdef HAVE_STRING_H
#include <string.h>
-
-#ifdef NATIVE_WIN32
-/* The POSIX name for this item is deprecated. Instead, use the ISO
- C++ conformant name: _strdup. See online help for details. */
-#define strdup _strdup
-#endif
#endif
#define DB_DEF 0x10
diff --git a/buildtools/Mx/getopt.c b/buildtools/Mx/getopt.c
--- a/buildtools/Mx/getopt.c
+++ b/buildtools/Mx/getopt.c
@@ -36,7 +36,7 @@
char *optarg;
int
-getopt(int argc, char **argv, char *opts)
+getopt(int argc, char **argv, const char *opts)
{
static int sp = 1;
register int c;
diff --git a/buildtools/autogen/autogen/msc.py
b/buildtools/autogen/autogen/msc.py
--- a/buildtools/autogen/autogen/msc.py
+++ b/buildtools/autogen/autogen/msc.py
@@ -685,7 +685,7 @@
msc['BINS'].append((bin, '$(C_inst_%s_exe)' % bin2, condname))
condname = '!defined(' + ') &&
!defined('.join(binsmap['CONDINST']) + ')'
msc['NBINS'].append((bin, '$(C_noinst_%s_exe)' % bin2, condname))
- if binsmap.has_key('NOINST'):
+ elif binsmap.has_key('NOINST'):
msc['NBINS'].append((bin, bin, ''))
else:
msc['BINS'].append((bin, bin, ''))
diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -27,12 +27,6 @@
#include <ctype.h>
#include "msqldump.h"
-#ifdef NATIVE_WIN32
-/* The POSIX name for this item is deprecated. Instead, use the ISO
- C++ conformant name: _strdup. See online help for details. */
-#define strdup _strdup
-#endif
-
static void
quoted_print(stream *f, const char *s, const char singleq)
{
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -81,10 +81,6 @@
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
-#ifdef NATIVE_WIN32
-#define strdup _strdup
-#endif
-
enum modes {
MAL,
SQL
diff --git a/clients/mapiclient/msqldump.c b/clients/mapiclient/msqldump.c
--- a/clients/mapiclient/msqldump.c
+++ b/clients/mapiclient/msqldump.c
@@ -50,10 +50,6 @@
#include "msqldump.h"
#include "mprompt.h"
-#ifdef NATIVE_WIN32
-#define strdup _strdup
-#endif
-
static void
usage(const char *prog, int xit)
{
diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -822,10 +822,6 @@
# endif
#endif
-#ifdef NATIVE_WIN32
-#define strdup _strdup
-#endif
-
#ifdef HAVE_CRYPT_H
# include <crypt.h>
#else
diff --git a/clients/odbc/driver/ODBCGlobal.h b/clients/odbc/driver/ODBCGlobal.h
--- a/clients/odbc/driver/ODBCGlobal.h
+++ b/clients/odbc/driver/ODBCGlobal.h
@@ -93,10 +93,6 @@
#include <stdio.h>
#include <ctype.h>
-#ifdef NATIVE_WIN32
-# define strdup _strdup
-#endif
-
#ifdef SQLLEN /* it's a define for 32, a typedef for 64 */
#define LENFMT "%d"
#define ULENFMT "%u"
diff --git a/clients/odbc/winsetup/setup.c b/clients/odbc/winsetup/setup.c
--- a/clients/odbc/winsetup/setup.c
+++ b/clients/odbc/winsetup/setup.c
@@ -38,10 +38,6 @@
#include <odbcinst.h>
#include "resource.h"
-#if defined(_MSC_VER) && _MSC_VER >= 1400
-#define strdup _strdup
-#endif
-
static char *DriverName = "MonetDB ODBC Driver";
static HINSTANCE instance;
diff --git a/common/options/monet_options.mx b/common/options/monet_options.mx
--- a/common/options/monet_options.mx
+++ b/common/options/monet_options.mx
@@ -110,7 +110,6 @@
#endif
#ifdef NATIVE_WIN32
-#define strdup _strdup
#define getpid _getpid
#endif
diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -148,10 +148,6 @@
int (*fsetpos) (stream *s, lng p);
};
-#ifdef NATIVE_WIN32
-#define strdup _strdup
-#endif
-
int
mnstr_init(void)
{
diff --git a/gdk/gdk.mx b/gdk/gdk.mx
--- a/gdk/gdk.mx
+++ b/gdk/gdk.mx
@@ -2460,7 +2460,6 @@
#endif
#define fdopen _fdopen
#define putenv _putenv
-#define strdup _strdup
#endif
/*
diff --git a/monetdb5/misc/msabaoth.c b/monetdb5/misc/msabaoth.c
--- a/monetdb5/misc/msabaoth.c
+++ b/monetdb5/misc/msabaoth.c
@@ -47,7 +47,6 @@
#if defined(_MSC_VER) && _MSC_VER >= 1400
#define close _close
-#define strdup _strdup
#define unlink _unlink
#endif
diff --git a/monetdb5/misc/msabaoth.h b/monetdb5/misc/msabaoth.h
--- a/monetdb5/misc/msabaoth.h
+++ b/monetdb5/misc/msabaoth.h
@@ -57,7 +57,7 @@
} sabuplog;
#ifdef WIN32
-#if !defined(LIBMAL) && !defined(LIBATOMS) && !defined(LIBKERNEL) &&
!defined(LIBMAL) && !defined(LIBOPTIMIZER) && !defined(LIBSCHEDULER) &&
!defined(LIBMONETDB5) && !defined(LIBMSABAOTH)
+#if !defined(LIBMAL) && !defined(LIBATOMS) && !defined(LIBKERNEL) &&
!defined(LIBMAL) && !defined(LIBOPTIMIZER) && !defined(LIBSCHEDULER) &&
!defined(LIBMONETDB5) && !defined(LIBSABAOTH)
#define msab_export extern __declspec(dllimport)
#else
#define msab_export extern __declspec(dllexport)
diff --git a/monetdb5/modules/atoms/batxml.mx b/monetdb5/modules/atoms/batxml.mx
--- a/monetdb5/modules/atoms/batxml.mx
+++ b/monetdb5/modules/atoms/batxml.mx
@@ -144,7 +144,7 @@
#ifdef WIN32
-#ifndef LIBBATXML
+#ifndef LIBATOMS
#define batxml_export extern __declspec(dllimport)
#else
#define batxml_export extern __declspec(dllexport)
diff --git a/monetdb5/modules/atoms/xml.mx b/monetdb5/modules/atoms/xml.mx
--- a/monetdb5/modules/atoms/xml.mx
+++ b/monetdb5/modules/atoms/xml.mx
@@ -121,7 +121,7 @@
typedef str xml;
#ifdef WIN32
-#ifndef LIBXML
+#ifndef LIBATOMS
#define xml_export extern __declspec(dllimport)
#else
#define xml_export extern __declspec(dllexport)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list