Move OS defines to nmrpd.h
This commit is contained in:
		
							parent
							
								
									129f30da7c
								
							
						
					
					
						commit
						c53185dfbf
					
				
					 2 changed files with 12 additions and 11 deletions
				
			
		
							
								
								
									
										12
									
								
								ethsock.c
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								ethsock.c
									
										
									
									
									
								
							| 
						 | 
					@ -5,17 +5,7 @@
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <pcap.h>
 | 
					#include <pcap.h>
 | 
				
			||||||
#include "ethsock.h"
 | 
					#include "ethsock.h"
 | 
				
			||||||
 | 
					#include "nmrpd.h"
 | 
				
			||||||
#if defined(_WIN32) || defined(_WIN64)
 | 
					 | 
				
			||||||
#define NMRPFLASH_WINDOWS
 | 
					 | 
				
			||||||
#elif defined(__linux__)
 | 
					 | 
				
			||||||
#define NMRPFLASH_LINUX
 | 
					 | 
				
			||||||
#elif defined(__APPLE__) && defined(__MACH__)
 | 
					 | 
				
			||||||
#define NMRPFLASH_OSX
 | 
					 | 
				
			||||||
#elif defined(__unix__)
 | 
					 | 
				
			||||||
#define NMRPFLASH_UNIX
 | 
					 | 
				
			||||||
#warning "nmrp-flash is not fully supported on your operating system"
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(NMRPFLASH_WINDOWS)
 | 
					#if defined(NMRPFLASH_WINDOWS)
 | 
				
			||||||
#include <winsock2.h>
 | 
					#include <winsock2.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								nmrpd.h
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								nmrpd.h
									
										
									
									
									
								
							| 
						 | 
					@ -22,6 +22,17 @@
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(_WIN32) || defined(_WIN64)
 | 
				
			||||||
 | 
					#define NMRPFLASH_WINDOWS
 | 
				
			||||||
 | 
					#elif defined(__linux__)
 | 
				
			||||||
 | 
					#define NMRPFLASH_LINUX
 | 
				
			||||||
 | 
					#elif defined(__APPLE__) && defined(__MACH__)
 | 
				
			||||||
 | 
					#define NMRPFLASH_OSX
 | 
				
			||||||
 | 
					#elif defined(__unix__)
 | 
				
			||||||
 | 
					#define NMRPFLASH_UNIX
 | 
				
			||||||
 | 
					#warning "nmrp-flash is not fully supported on your operating system"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define NMRPD_VERSION "0.9"
 | 
					#define NMRPD_VERSION "0.9"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum nmrp_op {
 | 
					enum nmrp_op {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue