Skip to content

Commit

Permalink
server: remove ad-hoc EXPORT macro definitions, replace with proper e…
Browse files Browse the repository at this point in the history
…xportdef.h
  • Loading branch information
a1batross committed May 22, 2024
1 parent 9d60129 commit 1d20a7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 1 addition & 6 deletions dlls/extdll.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ typedef int BOOL;
#endif
#endif //_WIN32

#ifdef _WIN32
#define EXPORT _declspec( dllexport )
#else
#define EXPORT /* */
#endif

#include "exportdef.h"
// Misc C-runtime library headers
#include "stdio.h"
#include "stdlib.h"
Expand Down
8 changes: 2 additions & 6 deletions engine/eiface.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@
// This is conveniently done for them in extdll.h
//

#ifdef _WIN32
#define DLLEXPORT __stdcall
#else
#define DLLEXPORT /* */
#endif
#include "exportdef.h"

typedef enum
{
Expand Down Expand Up @@ -477,4 +473,4 @@ extern NEW_DLL_FUNCTIONS gNewDLLFunctions;
typedef int (*APIFUNCTION)( DLL_FUNCTIONS *pFunctionTable, int interfaceVersion );
typedef int (*APIFUNCTION2)( DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion );

#endif//EIFACE_H
#endif//EIFACE_H

0 comments on commit 1d20a7c

Please sign in to comment.