summaryrefslogtreecommitdiff
path: root/wsutil/ws_mempbrk.h
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-06-09 17:30:08 +0200
committerAnders Broman <a.broman58@gmail.com>2014-06-09 15:31:45 +0000
commit8e8a4ceba30f2034c74d1542f3f04eaffa79979e (patch)
treeb5622406f3b292c76f894b26a24993b2d876b4a1 /wsutil/ws_mempbrk.h
parent9dbf2ff28e1fe9e88e90ae1cefaf5295cbf1287f (diff)
downloadwireshark-8e8a4ceba30f2034c74d1542f3f04eaffa79979e.tar.gz
Try to fix the builds.
Change-Id: I3ccb5c1b40504cd9314da5a09b225e3e2bf991b8 Reviewed-on: https://code.wireshark.org/review/2073 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/ws_mempbrk.h')
-rw-r--r--wsutil/ws_mempbrk.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/wsutil/ws_mempbrk.h b/wsutil/ws_mempbrk.h
new file mode 100644
index 0000000000..16c774f129
--- /dev/null
+++ b/wsutil/ws_mempbrk.h
@@ -0,0 +1,36 @@
+/* ws_mempbrk.h
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __WS_MEMPBRK_H__
+#define __WS_MEMPBRK_H__
+
+#include "ws_symbol_export.h"
+
+WS_DLL_PUBLIC const guint8 *ws_mempbrk(const guint8* haystack, size_t haystacklen, const guint8 *needles);
+
+#ifdef HAVE_SSE42
+const char *_ws_mempbrk_sse42(const char* haystack, size_t haystacklen, const char *needles);
+#endif
+
+const guint8 *_ws_mempbrk(const guint8* haystack, size_t haystacklen, const guint8 *needles);
+
+
+#endif /* __WS_MEMPBRK_H__ */ \ No newline at end of file