Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Allow user define RLOTTIE_API macros. #428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inc/rlottie.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#include <vector>
#include <memory>

#if defined _WIN32 || defined __CYGWIN__
#ifdef RLOTTIE_API
// do nothing
#elif defined _WIN32 || defined __CYGWIN__
#ifdef RLOTTIE_BUILD
#define RLOTTIE_API __declspec(dllexport)
#else
Expand Down
4 changes: 3 additions & 1 deletion inc/rlottiecommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
#ifndef _RLOTTIE_COMMON_H_
#define _RLOTTIE_COMMON_H_

#if defined _WIN32 || defined __CYGWIN__
#ifdef RLOTTIE_API
// do nothing
#elif defined _WIN32 || defined __CYGWIN__
#ifdef RLOTTIE_BUILD
#define RLOTTIE_API __declspec(dllexport)
#else
Expand Down
4 changes: 3 additions & 1 deletion src/vector/stb/stb_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

#include "stb_image.h"

#if defined _WIN32 || defined __CYGWIN__
#ifdef RLOTTIE_API
// do nothing
#elif defined _WIN32 || defined __CYGWIN__
#ifdef RLOTTIE_BUILD
#define RLOTTIE_API __declspec(dllexport)
#else
Expand Down