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

Commit09eb633

Browse files
committed
Remove "#ifdef WIN32" guards from src/port/win32*.c
These files are only compiled on Windows, and most of them didn't have"#ifdef WIN32" guards. Remove them from the few that did, forconsistency.Author: Tristan PartinDiscussion:https://www.postgresql.org/message-id/CXGM9RYSXA2J.1DBO4MRXGZA9P@neon.tech
1 parent9f35e42 commit09eb633

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

‎src/port/win32common.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include"postgres.h"
2020
#endif
2121

22-
#ifdefWIN32
23-
2422
/*
2523
* pgwin32_get_file_type
2624
*
@@ -64,5 +62,3 @@ pgwin32_get_file_type(HANDLE hFile)
6462

6563
returnfileType;
6664
}
67-
68-
#endif/* WIN32 */

‎src/port/win32fseek.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include"postgres.h"
1818
#endif
1919

20-
#if defined(WIN32)&& defined(_MSC_VER)
20+
#ifdef_MSC_VER
2121

2222
/*
2323
* _pgfseeko64
@@ -72,4 +72,4 @@ _pgftello64(FILE *stream)
7272
return-1;
7373
}
7474

75-
#endif/*defined(WIN32) && defined(_MSC_VER) */
75+
#endif/* _MSC_VER */

‎src/port/win32stat.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*-------------------------------------------------------------------------
1414
*/
1515

16-
#ifdefWIN32
17-
1816
#include"c.h"
1917
#include"port/win32ntdll.h"
2018

@@ -302,5 +300,3 @@ _pgfstat64(int fileno, struct stat *buf)
302300
buf->st_nlink=1;
303301
return0;
304302
}
305-
306-
#endif/* WIN32 */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp