mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Add missing prototype: Fixes compiler warning
SQLGetPrivateProfileString was not defined before use.
This commit is contained in:
parent
5e092ba331
commit
ce022eb1c7
@ -46,12 +46,20 @@
|
|||||||
static char line[max_line];
|
static char line[max_line];
|
||||||
|
|
||||||
static guint HashFunction (gconstpointer key);
|
static guint HashFunction (gconstpointer key);
|
||||||
#if !HAVE_SQLGETPRIVATEPROFILESTRING
|
#if HAVE_SQLGETPRIVATEPROFILESTRING
|
||||||
|
#include <sqltypes.h>
|
||||||
|
extern int SQLGetPrivateProfileString( LPCSTR lpszSection,
|
||||||
|
LPCSTR lpszEntry,
|
||||||
|
LPCSTR lpszDefault,
|
||||||
|
LPSTR lpszRetBuffer,
|
||||||
|
int cbRetBuffer,
|
||||||
|
LPCSTR lpszFilename);
|
||||||
|
#else
|
||||||
static GString* GetIniFileName ();
|
static GString* GetIniFileName ();
|
||||||
static int FileExists (const gchar* name);
|
static int FileExists (const gchar* name);
|
||||||
static int FindSection (FILE* stream, const char* section);
|
static int FindSection (FILE* stream, const char* section);
|
||||||
static int GetNextItem (FILE* stream, char** name, char** value);
|
static int GetNextItem (FILE* stream, char** name, char** value);
|
||||||
#endif //!HAVE_SQLGETPRIVATEPROFILESTRING
|
#endif //HAVE_SQLGETPRIVATEPROFILESTRING
|
||||||
|
|
||||||
static void visit (gpointer key, gpointer value, gpointer user_data);
|
static void visit (gpointer key, gpointer value, gpointer user_data);
|
||||||
static gboolean cleanup (gpointer key, gpointer value, gpointer user_data);
|
static gboolean cleanup (gpointer key, gpointer value, gpointer user_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user