Skip to content

Instantly share code, notes, and snippets.

@knopp
Created May 10, 2020 12:29
Show Gist options
  • Save knopp/902743194d3bea0d11f819fe68570644 to your computer and use it in GitHub Desktop.
Save knopp/902743194d3bea0d11f819fe68570644 to your computer and use it in GitHub Desktop.
#if defined(FN_PREFIX_H)
#error You should not include the precompiled header directly, it should be force-included using compiler flags.
#endif
#define FN_PREFIX_H
#if defined(__cplusplus)
#include <algorithm>
#include <array>
#include <atomic>
#include <cmath>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <mutex>
#include <numeric>
#include <set>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
// removed until actually used
//#include <stack>
//#include <forward_list>
#else
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <math.h>
#include <memory.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#endif // __cplusplus
#ifdef __cplusplus
// This is just a wraper for cpp-format; We want to include it in precompiled headers
#include "foundation/format.h"
// function is included in common.h, may as well be in precompiled headers
#include "contrib/folly/function.h"
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment