Prettier #ifdef indents

This commit is contained in:
Joseph C. Lehner 2023-10-23 16:36:05 +02:00
parent affcd0be47
commit fb9cf62f74

48
nmrpd.h
View file

@ -24,38 +24,38 @@
#include <stdbool.h> #include <stdbool.h>
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
# define NMRPFLASH_WINDOWS # define NMRPFLASH_WINDOWS
#elif defined(__APPLE__) && defined(__MACH__) #elif defined(__APPLE__) && defined(__MACH__)
# define NMRPFLASH_UNIX # define NMRPFLASH_UNIX
# define NMRPFLASH_OSX # define NMRPFLASH_OSX
# define NMRPFLASH_BSD # define NMRPFLASH_BSD
#elif defined (__unix__) #elif defined (__unix__)
# define NMRPFLASH_UNIX # define NMRPFLASH_UNIX
# if defined(__linux__) # if defined(__linux__)
# define NMRPFLASH_LINUX # define NMRPFLASH_LINUX
# elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) # elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
# define NMRPFLASH_BSD # define NMRPFLASH_BSD
# else # else
# warning "nmrpflash is not fully supported on this platform" # warning "nmrpflash is not fully supported on this platform"
# endif # endif
#else #else
# warning "nmrpflash is not supported on this platform" # warning "nmrpflash is not supported on this platform"
#endif #endif
#ifndef NMRPFLASH_WINDOWS #ifndef NMRPFLASH_WINDOWS
#include <arpa/inet.h> # include <arpa/inet.h>
#include <sys/types.h> # include <sys/types.h>
#include <sys/socket.h> # include <sys/socket.h>
#include <netinet/in.h> # include <netinet/in.h>
#include <net/if.h> # include <net/if.h>
#ifndef NMRPFLASH_LINUX # ifndef NMRPFLASH_LINUX
#include <net/if_dl.h> # include <net/if_dl.h>
#endif # endif
#else #else
#include <winsock2.h> # include <winsock2.h>
#include <ws2tcpip.h> # include <ws2tcpip.h>
#include <windows.h> # include <windows.h>
#include <conio.h> # include <conio.h>
#endif #endif
#ifndef MIN #ifndef MIN