Skip to content

Commit

Permalink
Merge pull request #16 from tehnick/fix-static-lib-in-windows
Browse files Browse the repository at this point in the history
Fix static library for MS Windows (for builds using MinGW)
  • Loading branch information
mcarbonneaux authored Jan 26, 2019
2 parents 372b13d + 476b80e commit 1f49caa
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion include/fcgi_stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
#endif

#ifndef DLLAPI
#ifdef _WIN32
#if defined (_WIN32) && defined (_MSC_VER)
#define DLLAPI __declspec(dllimport)
#else
#define DLLAPI
Expand Down
2 changes: 1 addition & 1 deletion include/fcgiapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#endif

#ifndef DLLAPI
#ifdef _WIN32
#if defined (_WIN32) && defined (_MSC_VER)
#define DLLAPI __declspec(dllimport)
#else
#define DLLAPI
Expand Down
2 changes: 1 addition & 1 deletion include/fcgio.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "fcgiapp.h"

#ifndef DLLAPI
#ifdef _WIN32
#if defined (_WIN32) && defined (_MSC_VER)
#define DLLAPI __declspec(dllimport)
#else
#define DLLAPI
Expand Down
2 changes: 1 addition & 1 deletion include/fcgios.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern "C" {
#endif /* !_WIN32 */

#ifndef DLLAPI
#ifdef _WIN32
#if defined (_WIN32) && defined (_MSC_VER)
#define DLLAPI __declspec(dllimport)
#else
#define DLLAPI
Expand Down
4 changes: 0 additions & 4 deletions libfcgi/fcgi_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#include <unistd.h>
#endif

#ifdef _WIN32
#define DLLAPI __declspec(dllexport)
#endif

#include "fcgiapp.h"
#include "fcgios.h"
#include "fcgimisc.h"
Expand Down
4 changes: 0 additions & 4 deletions libfcgi/fcgiapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
#include <limits.h>
#endif

#ifdef _WIN32
#define DLLAPI __declspec(dllexport)
#endif

#include "fcgimisc.h"
#include "fastcgi.h"
#include "fcgios.h"
Expand Down
4 changes: 0 additions & 4 deletions libfcgi/fcgio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
// implied; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.

#ifdef _WIN32
#define DLLAPI __declspec(dllexport)
#endif

#include <stdio.h>
#include <limits.h>
#include "fcgio.h"
Expand Down
2 changes: 0 additions & 2 deletions libfcgi/os_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <process.h>
#include <signal.h>

#define DLLAPI __declspec(dllexport)

#include "fcgimisc.h"
#include "fcgios.h"

Expand Down

0 comments on commit 1f49caa

Please sign in to comment.