Use C99 versions of __FUNCTION__ & __volatile__ when not building with gcc

main
Alan Coopersmith 2008-06-09 17:03:28 -07:00
parent 1bae8844ca
commit 628dc48a16
1 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,12 @@
# define DEPRECATED __attribute__ ((deprecated))
#else
# define DEPRECATED
# ifndef __FUNCTION__
# define __FUNCTION__ __func__ /* C99 */
# endif
# ifndef __volatile__
# define __volatile__ volatile
# endif
#endif
#if defined(__linux__)