Add DCHECKs for checking that underlying IOBuf wasn't modified
[folly.git] / folly / Demangle.h
index 205fdb65a3fc01c2f8b63efe61c0589be37d618a..13537dd50c648a311d883505e3cf154f4f219223 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
 
 #pragma once
 
-#include "folly/FBString.h"
+#include <folly/FBString.h>
 
 namespace folly {
 
@@ -59,4 +59,7 @@ inline size_t demangle(const std::type_info& type, char* buf, size_t bufSize) {
   return demangle(type.name(), buf, bufSize);
 }
 
-}
+// glibc doesn't have strlcpy
+size_t strlcpy(char* dest, const char* const src, size_t size);
+
+} // namespace folly