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

trunk/src/osd/osdcomm.h
r23934r23935
4545
4646#include <stdio.h>
4747#include <string.h>
48//#include <stdlib.h>
4948
5049
5150/***************************************************************************
r23934r23935
174173
175174
176175/* U64 and S64 are used to wrap long integer constants. */
177#ifdef __GNUC__
176#if defined(__GNUC__) || defined(_MSC_VER)
178177#define U64(val) val##ULL
179178#define S64(val) val##LL
180179#else
r23934r23935
233232#define LITTLE_ENDIANIZE_INT64(x)   (FLIPENDIAN_INT64(x))
234233#endif /* LSB_FIRST */
235234
235// compatibility with non-clang compilers
236#ifndef __has_feature
237   #define __has_feature(x) 0
238#endif
236239
237240#endif  /* __OSDCOMM_H__ */
trunk/src/emu/emualloc.c
r23934r23935
150150   // add a new entry
151151   memory_entry::allocate(size, result, file, line);
152152
153#if (!defined(__has_feature) || !__has_feature(memory_sanitizer)) && defined(MAME_DEBUG)
153#if !__has_feature(memory_sanitizer) && defined(MAME_DEBUG)
154154   memset(result, 0xdd, size);
155155#endif
156156
r23934r23935
174174   // add a new entry
175175   memory_entry::allocate(size, result, file, line);
176176
177#if (!defined(__has_feature) || !__has_feature(memory_sanitizer)) && defined(MAME_DEBUG)
177#if !__has_feature(memory_sanitizer) && defined(MAME_DEBUG)
178178   memset(result, 0xdd, size);
179179#endif
180180

Previous 199869 Revisions Next


© 1997-2024 The MAME Team