Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb80b384

Browse files
committed
Allow win32 client compiles with MSC.
Hiroshi Saito
1 parent2cd5abd commitb80b384

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

‎src/bin/psql/win32.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ CLEAN :
3333
-@erase"$(INTDIR)\print.obj"
3434
-@erase"$(INTDIR)\describe.obj"
3535
-@erase"$(INTDIR)\tab-complete.obj"
36+
-@erase"$(INTDIR)\sprompt.obj"
3637
-@erase"$(INTDIR)\getopt.obj"
3738
-@erase"$(INTDIR)\getopt_long.obj"
3839
-@erase"$(INTDIR)\path.obj"
@@ -70,6 +71,7 @@ LINK32_OBJS= \
7071
"$(INTDIR)\print.obj"\
7172
"$(INTDIR)\describe.obj"\
7273
"$(INTDIR)\tab-complete.obj"\
74+
"$(INTDIR)\sprompt.obj"\
7375
"$(INTDIR)\getopt.obj"\
7476
"$(INTDIR)\getopt_long.obj"\
7577
"$(INTDIR)\path.obj"\
@@ -81,6 +83,11 @@ LINK32_OBJS= \
8183
$(LINK32_FLAGS) $(LINK32_OBJS)
8284
<<
8385

86+
"$(OUTDIR)\sprompt.obj" : "$(OUTDIR)" ..\..\port\sprompt.c
87+
$(CPP) @<<
88+
$(CPP_PROJ) ..\..\port\sprompt.c
89+
<<
90+
8491
"$(OUTDIR)\getopt.obj" : "$(OUTDIR)" ..\..\port\getopt.c
8592
$(CPP) @<<
8693
$(CPP_PROJ) ..\..\port\getopt.c

‎src/port/sprompt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/port/sprompt.c,v 1.1 2003/08/08 04:52:22 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/port/sprompt.c,v 1.2 2003/10/26 04:29:15 momjian Exp $
77
*/
88

99

@@ -26,6 +26,7 @@
2626
#else
2727
#ifdefWIN32
2828
#include<windows.h>
29+
#undef ERROR
2930
#endif
3031
#endif
3132

‎src/port/thread.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@
77
*
88
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
99
*
10-
* $Id: thread.c,v 1.11 2003/10/24 20:48:10 momjian Exp $
10+
* $Id: thread.c,v 1.12 2003/10/26 04:29:15 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

1515
#include"postgres.h"
1616

17+
#include<sys/types.h>
18+
#include<errno.h>
19+
#if defined(WIN32)&& defined(_MSC_VER)
20+
#undef ERROR
21+
#else
22+
#include<pwd.h>
23+
#endif
1724
#if defined(USE_THREADS)
1825
#include<pthread.h>
1926
#endif
20-
#include<sys/types.h>
21-
#include<pwd.h>
22-
#include<errno.h>
2327

2428
/*
2529
*Threading sometimes requires specially-named versions of functions

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp