Re: Why PGDLLIMPORT is needed

From: Xiong He <iihero(at)qq(dot)com>
To: 高健 <luckyjackgao(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why PGDLLIMPORT is needed
Date: 2012-11-01 00:24:47
Message-ID: tencent_09B49B8302CEADDB2FB86269@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can check the macro definition there:

#ifdef BUILDING_DLL
#define PGDLLIMPORT __declspec (dllexport)
#else /* not BUILDING_DLL */
#define PGDLLIMPORT __declspec (dllimport)
#endif

#ifdef _MSC_VER
#define PGDLLEXPORT __declspec (dllexport)
#else
#define PGDLLEXPORT
#endif

It's only useful on Windows platform for the dll building(import, export) the API entries.

------------------
Thanks&Regards,
Xiong He

------------------ Original ------------------
From: "高健"<luckyjackgao(at)gmail(dot)com>;
Date: Mon, Oct 29, 2012 02:05 PM
To: "pgsql-general"<pgsql-general(at)postgresql(dot)org>;

Subject: [GENERAL] Why PGDLLIMPORT is needed

On /src/include/storage/proc.h:

I saw the following line:

extern PGDLLIMPORT PGPROC *MyProc;

I want to know why PGDLLIMPORT is used here?

Does it mean: exten PGPROC *MyProc; right?

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Burton 2012-11-01 01:01:20 Re: role does not exist
Previous Message Xiong He 2012-11-01 00:05:09 Re: Why SyncOneBuffer does not called frequently?