| Previous | 199869 Revisions | Next |
| r23935 Tuesday 25th June, 2013 at 13:44:47 UTC by Oliver Stöneberg |
|---|
| fixed emuallo.c compilation for good / enabled U64 and S64 for Visual Studio compilers (nw) |
| [src/emu] | emualloc.c |
| [src/osd] | osdcomm.h |
| r23934 | r23935 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | #include <stdio.h> |
| 47 | 47 | #include <string.h> |
| 48 | //#include <stdlib.h> | |
| 49 | 48 | |
| 50 | 49 | |
| 51 | 50 | /*************************************************************************** |
| r23934 | r23935 | |
| 174 | 173 | |
| 175 | 174 | |
| 176 | 175 | /* U64 and S64 are used to wrap long integer constants. */ |
| 177 | #ifdef | |
| 176 | #if defined(__GNUC__) || defined(_MSC_VER) | |
| 178 | 177 | #define U64(val) val##ULL |
| 179 | 178 | #define S64(val) val##LL |
| 180 | 179 | #else |
| r23934 | r23935 | |
| 233 | 232 | #define LITTLE_ENDIANIZE_INT64(x) (FLIPENDIAN_INT64(x)) |
| 234 | 233 | #endif /* LSB_FIRST */ |
| 235 | 234 | |
| 235 | // compatibility with non-clang compilers | |
| 236 | #ifndef __has_feature | |
| 237 | #define __has_feature(x) 0 | |
| 238 | #endif | |
| 236 | 239 | |
| 237 | 240 | #endif /* __OSDCOMM_H__ */ |
| r23934 | r23935 | |
|---|---|---|
| 150 | 150 | // add a new entry |
| 151 | 151 | memory_entry::allocate(size, result, file, line); |
| 152 | 152 | |
| 153 | #if | |
| 153 | #if !__has_feature(memory_sanitizer) && defined(MAME_DEBUG) | |
| 154 | 154 | memset(result, 0xdd, size); |
| 155 | 155 | #endif |
| 156 | 156 | |
| r23934 | r23935 | |
| 174 | 174 | // add a new entry |
| 175 | 175 | memory_entry::allocate(size, result, file, line); |
| 176 | 176 | |
| 177 | #if | |
| 177 | #if !__has_feature(memory_sanitizer) && defined(MAME_DEBUG) | |
| 178 | 178 | memset(result, 0xdd, size); |
| 179 | 179 | #endif |
| 180 | 180 |
| Previous | 199869 Revisions | Next |