Annotation of previous/src/cpu/compat.h, revision 1.1.1.3

1.1       root        1: /*
                      2:   Hatari - compat.h
                      3: 
                      4:   This file is distributed under the GNU Public License, version 2 or at
                      5:   your option any later version. Read the file gpl.txt for details.
                      6: 
                      7:   This file contains all the includes and defines specific to windows (such as TCHAR)
                      8:   needed by WinUae CPU core. 
                      9:   The aim is to have minimum changes in WinUae CPU core for next updates
                     10: */
                     11: 
                     12: #ifndef HATARI_COMPAT_H
                     13: #define HATARI_COMPAT_H
                     14: 
                     15: #include <stdbool.h>
                     16: 
                     17: #include "sysconfig.h"
                     18: 
                     19: /* this defione is here for newcpu.c compatibility.
                     20:  * In WinUae, it's defined in debug.h" */
                     21: #ifndef MAX_LINEWIDTH
                     22: #define MAX_LINEWIDTH 100
                     23: #endif
                     24: 
                     25: #ifndef REGPARAM
                     26: #define REGPARAM
                     27: #endif
                     28: 
                     29: #ifndef REGPARAM2
                     30: #define REGPARAM2
                     31: #endif
                     32: 
                     33: #ifndef REGPARAM3
                     34: #define REGPARAM3
                     35: #endif
                     36: 
                     37: #ifndef TCHAR
1.1.1.3 ! root       38: typedef char TCHAR;
1.1       root       39: #endif
                     40: 
                     41: #ifndef STATIC_INLINE
                     42: #define STATIC_INLINE static inline
                     43: #endif
                     44: 
                     45: #define _vsnprintf vsnprintf
                     46: #define _tcsncmp strncmp
                     47: #define _istspace isspace
                     48: #define _tcscmp strcmp
                     49: #define _tcslen strlen
                     50: #define _tcsstr strstr
                     51: #define _tcscpy strcpy
                     52: #define _tcsncpy strncpy
                     53: #define _tcscat strcat
                     54: #define _stprintf sprintf
                     55: 
                     56: #define _vsntprintf printf
                     57: 
                     58: #define f_out fprintf
                     59: 
                     60: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.