mirror of
https://github.com/Tribufu/TribufuRust
synced 2026-08-09 12:51:06 +00:00
Generate native bindings from rust crate
This commit is contained in:
parent
738f9c947b
commit
6ab490ce07
37 changed files with 1112 additions and 23 deletions
21
include/tribufu/platform.h
Normal file
21
include/tribufu/platform.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef DLLEXPORT
|
||||
#define DLLEXPORT __declspec(dllexport)
|
||||
#endif
|
||||
#ifndef DLLIMPORT
|
||||
#define DLLIMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __MACH__ || __APPLE__ || __linux__ || __FreeBSD__ || __ANDROID__
|
||||
#ifndef DLLEXPORT
|
||||
#define DLLEXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
#ifndef DLLIMPORT
|
||||
#define DLLIMPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue