Commit b80b384b authored by Bruce Momjian's avatar Bruce Momjian

Allow win32 client compiles with MSC.

Hiroshi Saito
parent 2cd5abd4
...@@ -33,6 +33,7 @@ CLEAN : ...@@ -33,6 +33,7 @@ CLEAN :
-@erase "$(INTDIR)\print.obj" -@erase "$(INTDIR)\print.obj"
-@erase "$(INTDIR)\describe.obj" -@erase "$(INTDIR)\describe.obj"
-@erase "$(INTDIR)\tab-complete.obj" -@erase "$(INTDIR)\tab-complete.obj"
-@erase "$(INTDIR)\sprompt.obj"
-@erase "$(INTDIR)\getopt.obj" -@erase "$(INTDIR)\getopt.obj"
-@erase "$(INTDIR)\getopt_long.obj" -@erase "$(INTDIR)\getopt_long.obj"
-@erase "$(INTDIR)\path.obj" -@erase "$(INTDIR)\path.obj"
...@@ -70,6 +71,7 @@ LINK32_OBJS= \ ...@@ -70,6 +71,7 @@ LINK32_OBJS= \
"$(INTDIR)\print.obj" \ "$(INTDIR)\print.obj" \
"$(INTDIR)\describe.obj" \ "$(INTDIR)\describe.obj" \
"$(INTDIR)\tab-complete.obj" \ "$(INTDIR)\tab-complete.obj" \
"$(INTDIR)\sprompt.obj" \
"$(INTDIR)\getopt.obj" \ "$(INTDIR)\getopt.obj" \
"$(INTDIR)\getopt_long.obj" \ "$(INTDIR)\getopt_long.obj" \
"$(INTDIR)\path.obj" \ "$(INTDIR)\path.obj" \
...@@ -81,6 +83,11 @@ LINK32_OBJS= \ ...@@ -81,6 +83,11 @@ LINK32_OBJS= \
$(LINK32_FLAGS) $(LINK32_OBJS) $(LINK32_FLAGS) $(LINK32_OBJS)
<< <<
"$(OUTDIR)\sprompt.obj" : "$(OUTDIR)" ..\..\port\sprompt.c
$(CPP) @<<
$(CPP_PROJ) ..\..\port\sprompt.c
<<
"$(OUTDIR)\getopt.obj" : "$(OUTDIR)" ..\..\port\getopt.c "$(OUTDIR)\getopt.obj" : "$(OUTDIR)" ..\..\port\getopt.c
$(CPP) @<< $(CPP) @<<
$(CPP_PROJ) ..\..\port\getopt.c $(CPP_PROJ) ..\..\port\getopt.c
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * Copyright 2000 by PostgreSQL Global Development Group
* *
* $Header: /cvsroot/pgsql/src/port/sprompt.c,v 1.1 2003/08/08 04:52:22 momjian Exp $ * $Header: /cvsroot/pgsql/src/port/sprompt.c,v 1.2 2003/10/26 04:29:15 momjian Exp $
*/ */
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#else #else
#ifdef WIN32 #ifdef WIN32
#include <windows.h> #include <windows.h>
#undef ERROR
#endif #endif
#endif #endif
......
...@@ -7,19 +7,23 @@ ...@@ -7,19 +7,23 @@
* *
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* *
* $Id: thread.c,v 1.11 2003/10/24 20:48:10 momjian Exp $ * $Id: thread.c,v 1.12 2003/10/26 04:29:15 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include "postgres.h" #include "postgres.h"
#include <sys/types.h>
#include <errno.h>
#if defined(WIN32) && defined(_MSC_VER)
#undef ERROR
#else
#include <pwd.h>
#endif
#if defined(USE_THREADS) #if defined(USE_THREADS)
#include <pthread.h> #include <pthread.h>
#endif #endif
#include <sys/types.h>
#include <pwd.h>
#include <errno.h>
/* /*
* Threading sometimes requires specially-named versions of functions * Threading sometimes requires specially-named versions of functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment