added some OS/2 functions
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: fio.h 340 2010-08-01 13:13:38Z hyunghwan.chung $
|
||||
* $Id: fio.h 396 2011-03-14 15:40:35Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -78,9 +78,13 @@ enum qse_fio_mode_t
|
||||
QSE_FIO_XOTH = 00001 /* can be executed by others */
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined (_WIN32)
|
||||
/* <winnt.h> => typedef PVOID HANDLE; */
|
||||
typedef void* qse_fio_hnd_t;
|
||||
#elif defined(__OS2__)
|
||||
/* <os2def.h> => typedef LHANDLE HFILE;
|
||||
typedef unsigned long LHANDLE; */
|
||||
typedef unsigned long qse_fio_hnd_t;
|
||||
#else
|
||||
typedef int qse_fio_hnd_t;
|
||||
#endif
|
||||
|
44
qse/include/qse/conf_os2.h
Normal file
44
qse/include/qse/conf_os2.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* $Id: conf_msw.h 287 2009-09-15 10:01:02Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
|
||||
QSE is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
QSE is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with QSE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define QSE_ENDIAN_LITTLE
|
||||
|
||||
#define QSE_SIZEOF_CHAR 1
|
||||
#define QSE_SIZEOF_SHORT 2
|
||||
#define QSE_SIZEOF_INT 4
|
||||
|
||||
#define QSE_SIZEOF_LONG 4
|
||||
|
||||
#define QSE_SIZEOF_LONG_LONG 0
|
||||
#define QSE_SIZEOF___INT8 1
|
||||
#define QSE_SIZEOF___INT16 2
|
||||
#define QSE_SIZEOF___INT32 4
|
||||
#define QSE_SIZEOF___INT64 8
|
||||
#define QSE_SIZEOF___INT96 0
|
||||
#define QSE_SIZEOF___INT128 0
|
||||
|
||||
#define QSE_SIZEOF_VOID_P 4
|
||||
#define QSE_SIZEOF_FLOAT 4
|
||||
#define QSE_SIZEOF_DOUBLE 8
|
||||
#define QSE_SIZEOF_LONG_DOUBLE 16
|
||||
#define QSE_SIZEOF_WCHAR_T 2
|
||||
|
||||
#define QSE_SIZEOF_OFF64_T 0
|
||||
#define QSE_SIZEOF_OFF_T 4
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: types.h 389 2011-02-25 15:26:16Z hyunghwan.chung $
|
||||
* $Id: types.h 396 2011-03-14 15:40:35Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -36,6 +36,8 @@
|
||||
# include <qse/conf_msw.h>
|
||||
#elif defined(vms) || defined(__vms)
|
||||
# include <qse/conf_vms.h>
|
||||
#elif defined(OS2) || defined(__OS2__)
|
||||
# include <qse/conf_os2.h>
|
||||
#else
|
||||
# error unsupported operating system
|
||||
#endif
|
||||
@ -398,6 +400,10 @@ typedef int qse_mcint_t;
|
||||
# define QSE_CHAR_IS_WCHAR
|
||||
typedef qse_wchar_t qse_char_t;
|
||||
typedef qse_wcint_t qse_cint_t;
|
||||
#elif defined(__OS2__)
|
||||
# define QSE_CHAR_IS_MCHAR
|
||||
typedef qse_mchar_t qse_char_t;
|
||||
typedef qse_mcint_t qse_cint_t;
|
||||
#else
|
||||
# if defined(QSE_CHAR_IS_MCHAR)
|
||||
typedef qse_mchar_t qse_char_t;
|
||||
|
Reference in New Issue
Block a user