c++ if defined(

tech2023-06-11  96

格式如下 

#if defined(__linux__) #include <endian.h> #elif defined(_WIN32) || defined(__NetBSD__) #include <sys/endian.h> #elif defined(__OpenBSD__) #include <sys/types.h> #define be16toh(x) betoh16(x) #define be32toh(x) betoh32(x) #define be64toh(x) betoh64(x) #endif

 

最新回复(0)