Sha256: 2d3e5a742d9789b9ff5fb036c80d702e872a30cf649fd4c4e5aff75f4d3197f4

Contents?: true

Size: 1013 Bytes

Versions: 3

Compression:

Stored size: 1013 Bytes

Contents

#pragma once

// https://stackoverflow.com/a/2164853

// Microsoft
#if defined(_MSC_VER)
#define GOSU_FFI_API_EXPORTS __declspec(dllexport)
#define GOSU_FFI_API_IMPORTS __declspec(dllimport)
// GCC
#elif defined(__GNUC__)
#define GOSU_FFI_API_EXPORTS __attribute__((visibility("default")))
#define GOSU_FFI_API_IMPORTS
// Do nothing and hope for the best
#else
#define GOSU_FFI_API_EXPORTS
#define GOSU_FFI_API_IMPORTS
#pragma warning Unknown dynamic link import/export semantics.
#endif

#ifdef GOSU_FFI_EXPORTS
#if defined(MRBGEM_MRUBY_GOSU_VERSION) && !defined(__cplusplus) // Compiling mruby-gosu as C only
#if defined(_MSC_VER)
#include <stdbool.h>
#endif
#define GOSU_FFI_API GOSU_FFI_API_EXPORTS
#else
// When building Gosu, also add [[maybe_unused]] to silence warnings about unused functions.
#define GOSU_FFI_API extern "C" [[maybe_unused]] GOSU_FFI_API_EXPORTS
#endif
#elif defined(__cplusplus)
#define GOSU_FFI_API extern "C" GOSU_FFI_API_IMPORTS
#else
#define GOSU_FFI_API GOSU_FFI_API_IMPORTS
#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gosu-2.0.0.pre8 ffi/Gosu_FFI.h
gosu-2.0.0.pre7 ffi/Gosu_FFI.h
gosu-2.0.0.pre6 ffi/Gosu_FFI.h