Add a preprocessor guard around __STDC_LIMIT_MACROS in IOBuf.cpp
authorMichael Lee <mzlee@fb.com>
Wed, 13 Jan 2016 00:22:47 +0000 (16:22 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Wed, 13 Jan 2016 01:20:30 +0000 (17:20 -0800)
Summary:
Adding the standard preprocessor guard around the `#define
__STD_LIMIT_MACROS` in IOBuf.cpp.

public

Reviewed By: knekritz

Differential Revision: D2825816

fb-gh-sync-id: 191824ec8d1f837e2b8380a2f8451972c421ceaa

folly/io/IOBuf.cpp

index 35c4e102bf49d85f01dd08af97a65acdbc864df9..09ec25b627775090e0ecc7ee0df58fbb53ac67e4 100644 (file)
@@ -14,7 +14,9 @@
  * limitations under the License.
  */
 
+#ifndef __STDC_LIMIT_MACROS
 #define __STDC_LIMIT_MACROS
+#endif
 
 #include <folly/io/IOBuf.h>