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

simple doubt with shfolder.lib?

From: "Hiroshi Saito" <saito(at)inetrt(dot)skcapi(dot)co(dot)jp>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: simple doubt with shfolder.lib?
Date: 2005-02-01 18:24:43
Message-ID: 01ce01c5088b$4d216e00$1f324d80@w2k (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
Hi Magnus.

I have a doubt to the way of linking to use MS-SDK.

It is defined as follows by using <shfolder.h>

#ifdef UNICODE
#define SHGetFolderPath     SHGetFolderPathW
#define PFNSHGETFOLDERPATH  PFNSHGETFOLDERPATHW
#else
#define SHGetFolderPath     SHGetFolderPathA
#define PFNSHGETFOLDERPATH  PFNSHGETFOLDERPATHA
#endif

Therefore, It seems that present patch is necessity.

--- src/interfaces/libpq/fe-connect.c.orig      Wed Feb  2 03:20:05 2005
+++ src/interfaces/libpq/fe-connect.c   Wed Feb  2 03:20:19 2005
@@ -44,6 +44,7 @@
 #endif
 #define near
 #include <shlobj.h>
+#include <shfolder.h>
 #else
 #include <sys/socket.h>
 #include <netdb.h>
--- src/port/path.c.orig        Wed Feb  2 03:19:19 2005
+++ src/port/path.c     Wed Feb  2 03:19:38 2005
@@ -27,6 +27,7 @@
 #endif
 #define near
 #include <shlobj.h>
+#include <shfolder.h>
 #else
 #include <unistd.h>
 #endif

Or, my misunderstanding? 
Any comment?

regards,
Hiroshi Saito

pgsql-hackers-win32 by date

Next:From: Magnus HaganderDate: 2005-02-01 19:57:48
Subject: Re: simple doubt with shfolder.lib?
Previous:From: Nicolai TufarDate: 2005-01-30 10:17:35
Subject: Repleacement for src/port/snprintf.c

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