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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user