Commit 67c9b092 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Support newer CRT versions for the portibility shims

Summary: Newer CRT versions have changed how certain definitions were gated, so we need to update to support them.

Reviewed By: akrieger, guangyfb

Differential Revision: D18435320

fbshipit-source-id: 40ffc57ed1fe0ad1b01ab834aed9762bde5563cb
parent 62d8e6e0
......@@ -29,9 +29,15 @@
#ifndef __STDC__
/* nolint */
#define __STDC__ 1
#pragma push_macro("_CRT_DECLARE_NONSTDC_NAMES")
#ifdef _CRT_DECLARE_NONSTDC_NAMES
#undef _CRT_DECLARE_NONSTDC_NAMES
#endif
#define _CRT_DECLARE_NONSTDC_NAMES 0
#include <direct.h> // @manual nolint
#include <io.h> // @manual nolint
#undef __STDC__
#pragma pop_macro("_CRT_DECLARE_NONSTDC_NAMES")
#else
#include <direct.h> // @manual nolint
#include <io.h> // @manual nolint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment