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:
Nirgal Vourgère
2013-07-04 10:53:13 +02:00
parent 66b87caf26
commit 7162e8db74
60 changed files with 106 additions and 50 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -26,6 +26,7 @@
#define UNICODE
#endif //ENABLE_ODBC_W
#include "config.h"
#include <sql.h>
#include <sqlext.h>
#include <string.h>

View File

@@ -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