New functions ds_put_strftime(), ds_chomp().
[sliver-openvswitch.git] / include / compiler.h
index d3ea617..2e185bf 100644 (file)
@@ -38,6 +38,7 @@
 #define UNUSED __attribute__((__unused__))
 #define PACKED __attribute__((__packed__))
 #define PRINTF_FORMAT(FMT, ARG1) __attribute__((__format__(printf, FMT, ARG1)))
+#define STRFTIME_FORMAT(FMT) __attribute__((__format__(__strftime__, FMT, 0)))
 #define likely(x) __builtin_expect((x),1)
 #define unlikely(x) __builtin_expect((x),0)