made minor changes to support MINGW32

This commit is contained in:
2008-12-10 00:52:03 +00:00
parent dea9b94b87
commit 261c499217
10 changed files with 56 additions and 54 deletions

View File

@ -36,7 +36,7 @@ enum ase_fio_seek_origin_t
#ifdef _WIN32
/* <winnt.h> typedef PVOID HANDLE; */
typedef void* aes_fio_hnd_t;
typedef void* ase_fio_hnd_t;
#else
typedef int ase_fio_hnd_t;
#endif

View File

@ -1,5 +1,5 @@
/*
* $Id: types.h 443 2008-10-30 13:45:17Z baconevi $
* $Id: types.h 463 2008-12-09 06:52:03Z baconevi $
*
* {License}
*/
@ -17,10 +17,13 @@
******
*/
#if defined(_WIN32)
#if defined(_AUTO_CONFIGURED)
#include <ase/config.h>
#elif defined(_WIN32)
#include <ase/conf_msw.h>
#elif defined(vms) || defined(__vms)
#include <ase/conf_vms.h>
/*
#elif defined(__unix__) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__SPU__)
#if !defined(__unix__)
#define __unix__
@ -29,6 +32,7 @@
#define __unix
#endif
#include <ase/config.h>
*/
#else
#error unsupported operating system
#endif
@ -90,10 +94,10 @@ typedef int ase_tri_t;
* ase_ulong_t - define the largest unsigned integer type supported
******
*/
#if ASE_SIZEOF_LONG_LONG != 0
#if ASE_SIZEOF_LONG_LONG > 0
typedef long long ase_long_t;
typedef unsigned long long ase_ulong_t;
#elif ASE_SIZEOF___INT64 != 0
#elif ASE_SIZEOF___INT64 > 0
typedef __int64 ase_long_t;
typedef unsigned __int64 ase_ulong_t;
#else

View File

@ -1,5 +1,5 @@
/*
* $Id: main.h 223 2008-06-26 06:44:41Z baconevi $
* $Id: main.h 463 2008-12-09 06:52:03Z baconevi $
*
* {License}
*/
@ -10,21 +10,25 @@
#include <ase/types.h>
#include <ase/macros.h>
#if defined(_WIN32)
#include <tchar.h>
#define ase_main _tmain
typedef ase_char_t ase_achar_t;
#if defined(_WIN32) && !defined(__MINGW32__)
#if defined(ASE_CHAR_IS_MCHAR)
#define ase_main main
typedef ase_mchar_t ase_achar_t;
#else
#define ase_main wmain
typedef ase_wchar_t ase_achar_t;
#endif
#else
#define ase_main main
typedef ase_mchar_t ase_achar_t;
#endif
#ifdef __cplusplus
extern "C" {
#endif
int ase_runmain (int argc, ase_achar_t* argv[], int(*mf) (int,ase_char_t*[]));
/* TODO - ase_runmain with env */
#ifdef __cplusplus
}