diff --git a/src/libinput-util.h b/src/libinput-util.h index a0e9529e..d868cde2 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -60,15 +60,16 @@ #define DEFAULT_MOUSE_DPI 1000 #define DEFAULT_TRACKPOINT_SENSITIVITY 128 +#if !defined(_trace) && !defined(trace) && !defined(etrace) #define _trace(file, ...) \ do { \ char buf_[1024]; \ snprintf(buf_, sizeof(buf_), __VA_ARGS__); \ fprintf(file, ANSI_BLUE "%30s():%4d - " ANSI_RED "%s" ANSI_NORMAL "\n", __func__, __LINE__, buf_); \ } while (0) - #define trace(...) _trace(stdout, __VA_ARGS__) #define etrace(...) _trace(stderr, __VA_ARGS__) +#endif #define LIBINPUT_EXPORT __attribute__ ((visibility("default")))