1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00
damus/nostrdb/flatcc/flatcc_flatbuffers.h
2023-08-28 08:17:25 -07:00

56 lines
1.3 KiB
C

/*
* Even C11 compilers depend on clib support for `static_assert` which
* isn't always present, so we deal with this here for all compilers.
*
* Outside include guard to handle scope counter.
*/
#include "portable/pstatic_assert.h"
#ifndef FLATCC_FLATBUFFERS_H
#define FLATCC_FLATBUFFERS_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef flatcc_flatbuffers_defined
#define flatcc_flatbuffers_defined
#ifdef FLATCC_PORTABLE
#include "flatcc_portable.h"
#endif
#include "portable/pwarnings.h"
/* Needed by C99 compilers without FLATCC_PORTABLE. */
#include "portable/pstdalign.h"
/* Handle fallthrough attribute in switch statements. */
#include "portable/pattributes.h"
#include "flatcc_alloc.h"
#include "flatcc_assert.h"
#define __FLATBUFFERS_PASTE2(a, b) a ## b
#define __FLATBUFFERS_PASTE3(a, b, c) a ## b ## c
#define __FLATBUFFERS_CONCAT(a, b) __FLATBUFFERS_PASTE2(a, b)
/*
* "flatcc_endian.h" requires the preceeding include files,
* or compatible definitions.
*/
#include "portable/pendian.h"
#include "flatcc_types.h"
#include "flatcc_endian.h"
#include "flatcc_identifier.h"
#ifndef FLATBUFFERS_WRAP_NAMESPACE
#define FLATBUFFERS_WRAP_NAMESPACE(ns, x) ns ## _ ## x
#endif
#endif /* flatcc_flatbuffers_defined */
#ifdef __cplusplus
}
#endif
#endif /* FLATCC_FLATBUFFERS_H */