Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: crypto/include/integers.h

Issue 2344973002: Update libsrtp to version 2.0 (Closed)
Patch Set: Add '.' back to include_dirs Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/include/err.h ('k') | crypto/include/key.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/include/integers.h
diff --git a/srtp/crypto/include/integers.h b/crypto/include/integers.h
similarity index 97%
rename from srtp/crypto/include/integers.h
rename to crypto/include/integers.h
index ed77210b2b0ee108b879f9bbdb35b5621484d296..dafdb066ad262dd7d0e82caa3c209eafa34b411a 100644
--- a/srtp/crypto/include/integers.h
+++ b/crypto/include/integers.h
@@ -48,12 +48,6 @@
#define INTEGERS_H
-#ifdef SRTP_KERNEL
-
-#include "kernel_compat.h"
-
-#else /* SRTP_KERNEL */
-
/* use standard integer definitions, if they're available */
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
@@ -74,6 +68,10 @@
# include <machine/types.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Can we do 64 bit integers? */
#if !defined(HAVE_UINT64_T)
# if SIZEOF_UNSIGNED_LONG == 8
@@ -106,7 +104,6 @@ extern uint32_t high32(uint64_t value);
extern uint32_t low32(uint64_t value);
#endif
-#endif /* SRTP_KERNEL */
/* These macros are to load and store 32-bit values from un-aligned
addresses. This is required for processors that do not allow unaligned
@@ -143,4 +140,8 @@ extern uint32_t low32(uint64_t value);
#define GET_32(addr) (*(((uint32_t *) (addr)))
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* INTEGERS_H */
« no previous file with comments | « crypto/include/err.h ('k') | crypto/include/key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698