Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Make it produce a useable dll/lib under Windows #3

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion jmorecfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,16 @@ typedef unsigned int JDIMENSION;
#define METHODDEF(type) static type
/* a function used only in its module: */
#define LOCAL(type) static type

#ifdef _WIN32
#define GLOBAL(type) __declspec(dllexport) type
#define EXTERN(type) extern __declspec(dllexport) type
#else
/* a function referenced thru EXTERNs: */
#define GLOBAL(type) type
/* a reference to a GLOBAL function: */
#define EXTERN(type) extern type

#endif

/* This macro is used to declare a "method", that is, a function pointer.
* We want to supply prototype parameters if the compiler can cope.
Expand Down