/*#*
*#* $Log$
+ *#* Revision 1.18 2006/03/22 13:34:34 bernie
+ *#* MSVC support.
+ *#*
*#* Revision 1.17 2006/03/22 09:48:35 bernie
*#* Formatting.
*#*
/* MSVC doesn't support C99's __func__, but has a similar extension. */
#define __func__ __FUNCTION__
+ /* MSVC doesn't support C99's inline keyword */
+ #ifndef __cplusplus
+ #define INLINE __inline
+ #endif
+
#elif defined(__GNUC__)
/* Compiler features */
/*#*
*#* $Log$
+ *#* Revision 1.13 2006/03/22 13:34:34 bernie
+ *#* MSVC support.
+ *#*
*#* Revision 1.12 2006/03/22 09:48:23 bernie
*#* Simplify.
*#*
/* G++ can't inline functions with variable arguments... */
#define kprintf(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__)
#else
+ #define kvprintf(fmt, ap) vfprintf(stderr, fmt, ap)
INLINE int kprintf(const char *fmt, ...)
{
va_list ap;
return result;
}
#endif
- #define kvprintf(fmt, ap) vfprintf(stderr, fmt, ap)
void kdump(const void *buf, size_t len); /* UNIMPLEMENTED */
#ifndef ASSERT
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/03/22 13:34:34 bernie
+ *#* MSVC support.
+ *#*
*#* Revision 1.8 2006/02/23 09:09:28 bernie
*#* Remove Linux specific hack.
*#*
#ifdef _WIN32
#define OS_WIN32 1
#define OS_ID win32
+
+ // FIXME: Maybe disable Win32 exceptions?
+ typedef int cpuflags_t;
+ #define IRQ_DISABLE /* FIXME */
+ #define IRQ_ENABLE /* FIXME */
+ #define IRQ_SAVE_DISABLE(old_sigs) /* FIXME */
+ #define IRQ_RESTORE(old_sigs) /* FIXME */
+
#else
#define OS_WIN32 0
#endif