1 /* ----------------------------------------------------------------------- *
3 * Copyright 2007 The NASM Authors - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the license given in the file "License"
7 * distributed in the NASM archive.
9 * ----------------------------------------------------------------------- */
14 * Compiler-specific macros for NASM. Feel free to add support for
15 * other compilers in here.
35 # define _unused __attribute__((unused))
40 /* Some versions of MSVC have these only with underscores in front */
46 # ifdef HAVE__SNPRINTF
47 # define snprintf _snprintf
49 int snprintf(char *, size_t, const char *, ...);
53 #ifndef HAVE_VSNPRINTF
54 # ifdef HAVE__VSNPRINT
55 # define vsnprintf _vsnprintf
57 int vsnprintf(char *, size_t, const char *, va_list);
61 #endif /* COMPILER_H */