mirror of
				https://git.tukaani.org/xz.git
				synced 2025-11-04 07:22:55 +00:00 
			
		
		
		
	Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.
This commit is contained in:
		
							parent
							
								
									2dbdc5befb
								
							
						
					
					
						commit
						d9993fcb4d
					
				@ -23,7 +23,7 @@
 | 
				
			|||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef WIN32
 | 
					#ifdef _WIN32
 | 
				
			||||||
#	include <fcntl.h>
 | 
					#	include <fcntl.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -407,7 +407,7 @@ main(int argc, char **argv)
 | 
				
			|||||||
	lzma_stream strm = LZMA_STREAM_INIT;
 | 
						lzma_stream strm = LZMA_STREAM_INIT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Some systems require setting stdin and stdout to binary mode.
 | 
						// Some systems require setting stdin and stdout to binary mode.
 | 
				
			||||||
#ifdef WIN32
 | 
					#ifdef _WIN32
 | 
				
			||||||
	setmode(fileno(stdin), O_BINARY);
 | 
						setmode(fileno(stdin), O_BINARY);
 | 
				
			||||||
	setmode(fileno(stdout), O_BINARY);
 | 
						setmode(fileno(stdout), O_BINARY);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user