mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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
This commit is contained in:
		@@ -19,8 +19,6 @@
 | 
				
			|||||||
#include "postgres.h"
 | 
					#include "postgres.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef WIN32
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * pgwin32_get_file_type
 | 
					 * pgwin32_get_file_type
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -64,5 +62,3 @@ pgwin32_get_file_type(HANDLE hFile)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	return fileType;
 | 
						return fileType;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif							/* WIN32 */
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@
 | 
				
			|||||||
#include "postgres.h"
 | 
					#include "postgres.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(WIN32) && defined(_MSC_VER)
 | 
					#ifdef _MSC_VER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * _pgfseeko64
 | 
					 * _pgfseeko64
 | 
				
			||||||
@@ -72,4 +72,4 @@ _pgftello64(FILE *stream)
 | 
				
			|||||||
	return -1;
 | 
						return -1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif							/* defined(WIN32) && defined(_MSC_VER) */
 | 
					#endif							/* _MSC_VER */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,8 +13,6 @@
 | 
				
			|||||||
 *-------------------------------------------------------------------------
 | 
					 *-------------------------------------------------------------------------
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef WIN32
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "c.h"
 | 
					#include "c.h"
 | 
				
			||||||
#include "port/win32ntdll.h"
 | 
					#include "port/win32ntdll.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -302,5 +300,3 @@ _pgfstat64(int fileno, struct stat *buf)
 | 
				
			|||||||
	buf->st_nlink = 1;
 | 
						buf->st_nlink = 1;
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif							/* WIN32 */
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user