Patch level :2.1 nopatch
Files correlati :sqlite.dll Ricompilazione Demo : [ ] Commento :allineata la versione sqlite (da 12 a 13, con la EXPORT) git-svn-id: svn://10.65.10.50/trunk@11921 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9c482237d8
commit
ce8147104a
@ -12,12 +12,27 @@
|
||||
** This header file defines the interface that the SQLite library
|
||||
** presents to client programs.
|
||||
**
|
||||
** @(#) $Id: sqlite.h,v 1.1.1.1 2004-03-11 22:22:22 alex Exp $
|
||||
** @(#) $Id: sqlite.h,v 1.2 2004-03-29 09:48:53 luca Exp $
|
||||
*/
|
||||
#ifndef _SQLITE_H_
|
||||
#define _SQLITE_H_
|
||||
#include <stdarg.h> /* Needed for the definition of va_list */
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#ifdef SQLITE_EXPORTS
|
||||
#define SQLITE_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define SQLITE_EXPORT __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define SQLITE_EXPORT
|
||||
|
||||
#endif // WIN32
|
||||
|
||||
|
||||
/*
|
||||
** Make sure we can call this stuff from C++.
|
||||
*/
|
||||
@ -75,7 +90,7 @@ typedef struct sqlite sqlite;
|
||||
** ability to open a database readonly. The mode parameters is
|
||||
** provided in anticipation of that enhancement.
|
||||
*/
|
||||
sqlite *sqlite_open(const char *filename, int mode, char **errmsg);
|
||||
SQLITE_EXPORT sqlite *sqlite_open(const char *filename, int mode, char **errmsg);
|
||||
|
||||
/*
|
||||
** A function to close the database.
|
||||
@ -83,7 +98,7 @@ sqlite *sqlite_open(const char *filename, int mode, char **errmsg);
|
||||
** Call this function with a pointer to a structure that was previously
|
||||
** returned from sqlite_open() and the corresponding database will by closed.
|
||||
*/
|
||||
void sqlite_close(sqlite *);
|
||||
SQLITE_EXPORT void sqlite_close(sqlite *);
|
||||
|
||||
/*
|
||||
** The type for a callback function.
|
||||
@ -130,7 +145,7 @@ typedef int (*sqlite_callback)(void*,int,char**, char**);
|
||||
** behavior can be modified somewhat using the sqlite_busy_handler()
|
||||
** and sqlite_busy_timeout() functions below.)
|
||||
*/
|
||||
int sqlite_exec(
|
||||
SQLITE_EXPORT int sqlite_exec(
|
||||
sqlite*, /* An open database */
|
||||
const char *sql, /* SQL to be executed */
|
||||
sqlite_callback, /* Callback function */
|
||||
@ -427,7 +442,7 @@ char *sqlite_vmprintf(const char*, va_list);
|
||||
** SQLite is a DLL. For some reason, it does not work to call free()
|
||||
** directly.
|
||||
*/
|
||||
void sqlite_freemem(void *p);
|
||||
SQLITE_EXPORT void sqlite_freemem(void *p);
|
||||
|
||||
/*
|
||||
** Windows systems need functions to call to return the sqlite_version
|
||||
|
Loading…
x
Reference in New Issue
Block a user