浏览代码

perf tools: Remove PRI[xu] macros from perf.h

We get them from inttypes.h.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-qla4e4mwbf1oewafp1ee2etd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Arnaldo Carvalho de Melo 8 年之前
父节点
当前提交
c3dca1a1c0
共有 1 个文件被更改,包括 0 次插入20 次删除
  1. 0 20
      tools/perf/util/util.h

+ 0 - 20
tools/perf/util/util.h

@@ -34,7 +34,6 @@
 #include <poll.h>
 #include <poll.h>
 #include <sys/socket.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <sys/ioctl.h>
-#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/types.h>
 #include <sys/ttydefaults.h>
 #include <sys/ttydefaults.h>
@@ -50,25 +49,6 @@ extern const char *spaces;
 extern const char *dots;
 extern const char *dots;
 extern char buildid_dir[];
 extern char buildid_dir[];
 
 
-/* On most systems <limits.h> would have given us this, but
- * not on some systems (e.g. GNU/Hurd).
- */
-#ifndef PATH_MAX
-#define PATH_MAX 4096
-#endif
-
-#ifndef PRIuMAX
-#define PRIuMAX "llu"
-#endif
-
-#ifndef PRIu32
-#define PRIu32 "u"
-#endif
-
-#ifndef PRIx32
-#define PRIx32 "x"
-#endif
-
 #ifndef PATH_SEP
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #define PATH_SEP ':'
 #endif
 #endif