I infer from Google search results that strings.h (from here) is for UNIX systems. I would like to wrap the following line with a macro check of whether the host’s operating system is Linux/UNIX. It would be much appreciated to hear suggestions about it. Thanks in advance.
#include <strings.h>
One option would be:
Per MSDN,
_WIN32is “defined for applications for Win32 and Win64. Always defined.”A compiler or standard library for an operating system other than Windows is, of course, free to define
_WIN32, but that would be… most unusual.