mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 06:47:27 +00:00
Update Import/Export Macros
This commit is contained in:
parent
a92d4916dc
commit
0b1f87d079
2 changed files with 13 additions and 1 deletions
|
|
@ -1,7 +1,19 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "TribuFu.h"
|
||||
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#if defined(_MSC_VER)
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define IMPORT __declspec(dllimport)
|
||||
#elif defined(__GNUC__)
|
||||
#define EXPORT __attribute__((visibility("default")))
|
||||
#define IMPORT
|
||||
#else
|
||||
#define EXPORT
|
||||
#define IMPORT
|
||||
#pragma warning Unknown dynamic link import/export semantics.
|
||||
#endif
|
||||
|
||||
EXPORT char *Java_Hello(char *input);
|
||||
|
|
|
|||
0
Vendor/Premake/Linux/premake5
vendored
Normal file → Executable file
0
Vendor/Premake/Linux/premake5
vendored
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue