Skip to content

Instantly share code, notes, and snippets.

@hgaiser
Last active September 30, 2015 08:30
Show Gist options
  • Save hgaiser/e38157a94d1fe586b093 to your computer and use it in GitHub Desktop.
Save hgaiser/e38157a94d1fe586b093 to your computer and use it in GitHub Desktop.
diff --git a/src/third_party/s2/util/endian/endian.h b/src/third_party/s2/util/endian/endian.h
index 9def73f..5b90e0a 100755
--- a/src/third_party/s2/util/endian/endian.h
+++ b/src/third_party/s2/util/endian/endian.h
@@ -178,14 +178,10 @@ class LittleEndian {
};
-// This one is safe to take as it's an extension
-#define htonll(x) ghtonll(x)
-
// ntoh* and hton* are the same thing for any size and bytesex,
// since the function is an involution, i.e., its own inverse.
#define gntohl(x) ghtonl(x)
#define gntohs(x) ghtons(x)
#define gntohll(x) ghtonll(x)
-#define ntohll(x) htonll(x)
#endif // UTIL_ENDIAN_ENDIAN_H_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment