Support gcc's __FUNCTION__ for people using other compilers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>main
parent
b1ce1e6bfb
commit
dc1ed9952e
|
@ -51,6 +51,11 @@
|
|||
#include "mm.h"
|
||||
#include "libdrm_lists.h"
|
||||
|
||||
/* Support gcc's __FUNCTION__ for people using other compilers */
|
||||
#if !defined(__GNUC__) && !defined(__FUNCTION__)
|
||||
# define __FUNCTION__ __func__ /* C99 */
|
||||
#endif
|
||||
|
||||
#define DBG(...) do { \
|
||||
if (bufmgr_fake->bufmgr.debug) \
|
||||
drmMsg(__VA_ARGS__); \
|
||||
|
|
|
@ -46,6 +46,11 @@
|
|||
#endif
|
||||
#include "xf86drm.h"
|
||||
|
||||
/* Support gcc's __FUNCTION__ for people using other compilers */
|
||||
#if !defined(__GNUC__) && !defined(__FUNCTION__)
|
||||
# define __FUNCTION__ __func__ /* C99 */
|
||||
#endif
|
||||
|
||||
int sigio_fd;
|
||||
|
||||
static double usec(struct timeval *end, struct timeval *start)
|
||||
|
|
Loading…
Reference in New Issue