diff options
| author | Qiuwen Lu <[email protected]> | 2016-01-06 17:21:52 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2016-01-06 17:21:52 +0800 |
| commit | fbf0454ab5723b78bd6513fdf60f5f163f5934e2 (patch) | |
| tree | 908d348d3f3a353aedc4147d8c4262fb70f30fb2 | |
| parent | b30e027a3cb71a6960849fb32f9e86fd2c195039 (diff) | |
增加likely和unlikely在MSVC下的空定义v3.0.0-20160106
| -rw-r--r-- | worker/udpstack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/udpstack.c b/worker/udpstack.c index 42a69a0..c056918 100644 --- a/worker/udpstack.c +++ b/worker/udpstack.c @@ -43,6 +43,8 @@ #ifdef _MSC_VER
#define rte_cpu_to_be_16(x) htons(x)
#define rte_be_to_cpu_32(x) ntohl(x)
+#define likely(x) x
+#define unlikely(x) x
#endif
/* 功能选项 */
|
