Skip site navigation (1) Skip section navigation (2)

DllMain

From: Sebastian Setzer <setzersn(at)trick(dot)informatik(dot)uni-stuttgart(dot)de>
To: pgsql-ports(at)postgresql(dot)org
Subject: DllMain
Date: 2000-02-01 14:00:55
Message-ID: Pine.GSO.4.10.10002011457040.1575-100000@dagobert.informatik.uni-stuttgart.de (view raw or flat)
Thread:
Lists: pgsql-ports
I tried to compile postgres with cygwin (on Win 95) with gcc 2.95.2

I got an error message, complaining that the declaration of
DllMain in dllinit.c conflicts with the declaration in
cygwin/cygwin_dll.h

in cygwin/cygwin_dll.h :
 #define DECLARE_CYGWIN_DLL(Entry) \
  .... \
  int WINAPI Entry (HANDLE h, DWORD reason, void *ptr); \
  ...
which should expand to :
 int WINAPI DllMain (HANDLE h, DWORD reason, void *ptr);

in dllinit.c :
 BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved);

Is it because gcc 2.95.2 is stricter or is it a bug or is my
installation wrong or is it because i use Win 95 instead of NT ?

Can you help me ?

Sebastian Setzer


pgsql-ports by date

Next:From: clemmonsDate: 2000-02-01 17:35:24
Subject: Attn: Webmaster
Previous:From: Jeff SadowskiDate: 2000-01-31 20:12:16
Subject: licencing

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group