use #ifdef instead of #pragma once
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3965 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
2f0e20a582
commit
d5d39aaced
2 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
#pragma once
|
#ifndef ___PLUGIN__H___
|
||||||
|
#define ___PLUGIN__H___
|
||||||
|
|
||||||
typedef struct _stack_t {
|
typedef struct _stack_t {
|
||||||
struct _stack_t *next;
|
struct _stack_t *next;
|
||||||
|
@ -64,3 +65,5 @@ extern HWND g_hwndParent;
|
||||||
extern int g_stringsize;
|
extern int g_stringsize;
|
||||||
extern stack_t **g_stacktop;
|
extern stack_t **g_stacktop;
|
||||||
extern char *g_variables;
|
extern char *g_variables;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
|
#ifndef ___SYSTEM__H___
|
||||||
|
#define ___SYSTEM__H___
|
||||||
|
|
||||||
// The following ifdef block is the standard way of creating macros which make exporting
|
// The following ifdef block is the standard way of creating macros which make exporting
|
||||||
// from a DLL simpler. All files within this DLL are compiled with the SYSTEM_EXPORTS
|
// from a DLL simpler. All files within this DLL are compiled with the SYSTEM_EXPORTS
|
||||||
// symbol defined on the command line. this symbol should not be defined on any project
|
// symbol defined on the command line. this symbol should not be defined on any project
|
||||||
// that uses this DLL. This way any other project whose source files include this file see
|
// that uses this DLL. This way any other project whose source files include this file see
|
||||||
// SYSTEM_API functions as being imported from a DLL, whereas this DLL sees symbols
|
// SYSTEM_API functions as being imported from a DLL, whereas this DLL sees symbols
|
||||||
// defined with this macro as being exported.
|
// defined with this macro as being exported.
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#ifdef SYSTEM_EXPORTS
|
#ifdef SYSTEM_EXPORTS
|
||||||
#define SYSTEM_API __declspec(dllexport)
|
#define SYSTEM_API __declspec(dllexport)
|
||||||
|
@ -103,3 +105,5 @@ extern SystemProc *CallProc(SystemProc *proc);
|
||||||
extern SystemProc *CallBack(SystemProc *proc);
|
extern SystemProc *CallBack(SystemProc *proc);
|
||||||
extern SystemProc *RealCallBack();
|
extern SystemProc *RealCallBack();
|
||||||
extern void CallStruct(SystemProc *proc);
|
extern void CallStruct(SystemProc *proc);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue