fixed some typos for dos build

This commit is contained in:
hyung-hwan 2012-02-20 14:45:49 +00:00
parent 5cc0e408b3
commit a48c498dc8
4 changed files with 13 additions and 10 deletions

View File

@ -48,6 +48,7 @@
# define HAVE_ATAN # define HAVE_ATAN
# define HAVE_ATAN2 # define HAVE_ATAN2
# define HAVE_LOG # define HAVE_LOG
# define HAVE_LOG10
# define HAVE_EXP # define HAVE_EXP
# define HAVE_SQRT # define HAVE_SQRT
# endif # endif

View File

@ -37,6 +37,7 @@
#elif defined(__DOS__) #elif defined(__DOS__)
# include <io.h> # include <io.h>
# include <fcntl.h> # include <fcntl.h>
# include <errno.h>
#else #else
# include "syscall.h" # include "syscall.h"
#endif #endif
@ -450,7 +451,7 @@ int qse_fio_init (
zero.ulHi = 0; zero.ulHi = 0;
if (flags & QSE_FIO_APPEND) if (flags & QSE_FIO_APPEND)
fio->stats |= STATUS_APPEND; fio->status |= STATUS_APPEND;
if (flags & QSE_FIO_CREATE) if (flags & QSE_FIO_CREATE)
{ {

View File

@ -105,9 +105,9 @@ void qse_fs_fini (qse_fs_t* fs)
info->handle = INVALID_HANDLE_VALUE; info->handle = INVALID_HANDLE_VALUE;
} }
#elif defined(__OS2__) #elif defined(__OS2__)
# error NOT IMPLEMENTED /* TODO: implement this */
#elif defined(__DOS__) #elif defined(__DOS__)
# error NOT IMPLEMENTED /* TODO: implement this */
#else #else
if (info->mcurdir && info->mcurdir != fs->curdir) if (info->mcurdir && info->mcurdir != fs->curdir)
QSE_MMGR_FREE (fs->mmgr, info->mcurdir); QSE_MMGR_FREE (fs->mmgr, info->mcurdir);
@ -166,9 +166,9 @@ int qse_fs_chdir (qse_fs_t* fs, const qse_char_t* name)
const qse_char_t* tmp_name[4]; const qse_char_t* tmp_name[4];
qse_size_t idx; qse_size_t idx;
#elif defined(__OS2__) #elif defined(__OS2__)
# error NOT IMPLEMENTED /* TODO: implement this */
#elif defined(__DOS__) #elif defined(__DOS__)
# error NOT IMPLEMENTED /* TODO: implement this */
#else #else
DIR* handle; DIR* handle;
qse_mchar_t* mfsname; qse_mchar_t* mfsname;
@ -243,9 +243,9 @@ int qse_fs_chdir (qse_fs_t* fs, const qse_char_t* name)
return 0; return 0;
#elif defined(__OS2__) #elif defined(__OS2__)
# error NOT IMPLEMENTED /* TODO: implement this */
#elif defined(__DOS__) #elif defined(__DOS__)
# error NOT IMPLEMENTED /* TODO: implement this */
#else #else
idx = 0; idx = 0;
@ -515,9 +515,9 @@ qse_fs_ent_t* qse_fs_read (qse_fs_t* fs, int flags)
} }
#elif defined(__OS2__) #elif defined(__OS2__)
# error NOT IMPLEMENTED /* TODO: implement this */
#elif defined(__DOS__) #elif defined(__DOS__)
# error NOT IMPLEMENTED /* TODO: implement this */
#else #else
info_t* info; info_t* info;

View File

@ -32,6 +32,7 @@
# include <os2.h> # include <os2.h>
#elif defined(__DOS__) #elif defined(__DOS__)
# include <io.h> # include <io.h>
# include <errno.h>
#else #else
# include "syscall.h" # include "syscall.h"
# if defined(HAVE_SPAWN_H) # if defined(HAVE_SPAWN_H)
@ -1941,7 +1942,7 @@ static qse_ssize_t pio_write (
size = QSE_TYPE_MAX(qse_ssize_t) & QSE_TYPE_MAX(unsigned int); size = QSE_TYPE_MAX(qse_ssize_t) & QSE_TYPE_MAX(unsigned int);
n = write (hnd, data, size); n = write (hnd, data, size);
if (n <= -1) pio->errnum = syserro_to_errnum (errno); if (n <= -1) pio->errnum = syserr_to_errnum (errno);
return n; return n;
#else #else