Annotation of hatari/src/cpu/uae/attributes.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Defines useful functions and variable attributes for UAE
                      3:  * Copyright (C) 2014 Frode Solheim
                      4:  *
                      5:  * Licensed under the terms of the GNU General Public License version 2.
                      6:  * See the file 'COPYING' for full license text.
                      7:  */
                      8: 
                      9: #ifndef UAE_ATTRIBUTES_H
                     10: #define UAE_ATTRIBUTES_H
                     11: 
                     12: /* This file is intended to be included by external libraries as well,
                     13:  * so don't pull in too much UAE-specific stuff. */
                     14: 
                     15: #ifdef _WIN32
                     16: #define uae_cdecl __cdecl
                     17: #elif defined(__GNUC__) && defined(__i386__)
                     18: #define uae_cdecl __attribute__((cdecl))
                     19: #else
                     20: #define uae_cdecl
                     21: #endif
                     22: 
                     23: /* This attribute allows (some) compiles to emit warnings when incorrect
                     24:  * arguments are used with the format string. */
                     25: 
                     26: #ifdef __GNUC__
                     27: #define UAE_PRINTF_FORMAT(f, a) __attribute__((format(printf, f, a)))
                     28: #else
                     29: #define UAE_PRINTF_FORMAT(f, a)
                     30: #endif
                     31: 
                     32: #define UAE_WPRINTF_FORMAT(f, a)
                     33: 
                     34: #endif /* UAE_ATTRIBUTES_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.