mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Include config.h in all .c files
Need to be the first file since it may define large files support and other options.
This commit is contained in:
@@ -18,16 +18,13 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "connectparams.h"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* * Last resort place to check for INI file. This is usually set at compile time
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _ODBC_INI_LOAD_
|
||||
#define _ODBC_INI_LOAD_
|
||||
#ifndef _connectparams_h_
|
||||
#define _connectparams_h_
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
||||
@@ -16,12 +16,10 @@
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _mdbodbc_h_
|
||||
#define _mdbodbc_h_
|
||||
|
||||
#include <mdbtools.h>
|
||||
#include <mdbsql.h>
|
||||
|
||||
#include <sql.h>
|
||||
#include <sqlext.h>
|
||||
#if defined(UNIXODBC)
|
||||
@@ -30,6 +28,8 @@
|
||||
# include <iodbcinst.h>
|
||||
#endif
|
||||
|
||||
#include "mdbtools.h"
|
||||
#include "mdbsql.h"
|
||||
#include "connectparams.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define UNICODE
|
||||
#endif //ENABLE_ODBC_W
|
||||
|
||||
#include "config.h"
|
||||
#include <sql.h>
|
||||
#include <sqlext.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
*/
|
||||
|
||||
/* #include <windows.h> */
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <sql.h>
|
||||
#include <sqlext.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#define SALES_PERSON_LEN 2
|
||||
#define STATUS_LEN 6
|
||||
|
||||
Reference in New Issue
Block a user