Skip to content

Commit 09eb633

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, for consistency. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/CXGM9RYSXA2J.1DBO4MRXGZA9P@neon.tech
1 parent 9f35e42 commit 09eb633

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-
#ifdef WIN32
23-
2422
/*
2523
* pgwin32_get_file_type
2624
*
@@ -64,5 +62,3 @@ pgwin32_get_file_type(HANDLE hFile)
6462

6563
return fileType;
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-
#ifdef WIN32
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
return 0;
304302
}
305-
306-
#endif /* WIN32 */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy