Use __attribute__((format(printf, ...))) directly

Instead of defining the macro _R_(), define __attribute__() as a macro for
compilers that do not support __attribute__(), namely Microsoft Visual
Studio.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2021-05-23 11:38:43 -07:00
parent 4ea2bc6acb
commit ea6b2282d4
9 changed files with 12 additions and 18 deletions

View File

@@ -36,6 +36,10 @@ THE SOFTWARE.
#include <malloc.h>
#include <sys/stat.h>
#if defined(_MSC_VER)
#define __attribute__(attr)
#endif
#define SOL_TCP IPPROTO_TCP
#if(_WIN32_WINNT < 0x0600)