blob: 0e59f5279e4c8c62a2fe6ffbea3092c97513f958 [file] [log] [blame]
H. Peter Anvinc1494ac2007-04-13 19:58:42 +00001/* ----------------------------------------------------------------------- *
2 *
3 * Copyright 2007 The NASM Authors - All Rights Reserved
4 *
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.
8 *
9 * ----------------------------------------------------------------------- */
10
11/*
12 * compiler.h
13 *
14 * Compiler-specific macros for NASM. Feel free to add support for
15 * other compilers in here.
16 */
17
18#ifndef COMPILER_H
19#define COMPILER_H
20
21#ifdef __GNUC__
22# if __GNUC__ >= 4
23# define HAVE_GNUC_4
24# endif
25# if __GNUC__ >= 3
26# define HAVE_GNUC_3
27# endif
28#endif
29
30#ifdef __GNUC__
31# define _unused __attribute__((unused))
32#else
33# define _unused
34#endif
35
36#endif