include: Add missing functions for Visual Studio.
[platform/upstream/cmocka.git] / src / cmocka.c
index db77cb4..8cb31ea 100644 (file)
 #include <string.h>
 #include <time.h>
 
-#ifdef _WIN32
-#include <windows.h>
-
-#define vsnprintf _vsnprintf
-
-/*
- * Backwards compatibility with headers shipped with Visual Studio 2005 and
- * earlier.
- */
-WINBASEAPI BOOL WINAPI IsDebuggerPresent(VOID);
-
-#ifndef PRIdS
-# define PRIdS "Id"
-#endif
-
-#ifndef PRIu64
-# define PRIu64 "I64u"
-#endif
-
-#ifndef PRIuMAX
-# define PRIuMAX PRIu64
-#endif
-
-#ifndef PRIxMAX
-#define PRIxMAX "I64x"
-#endif
-
-#ifndef PRIXMAX
-#define PRIXMAX "I64X"
-#endif
-
-#else /* _WIN32 */
-
-#ifndef __PRI64_PREFIX
-# if __WORDSIZE == 64
-#  define __PRI64_PREFIX "l"
-# else
-#  define __PRI64_PREFIX "ll"
-# endif
-#endif
-
-#ifndef PRIdS
-# define PRIdS "zd"
-#endif
-
-#ifndef PRIu64
-# define PRIu64 __PRI64_PREFIX "u"
-#endif
-
-#ifndef PRIuMAX
-# define PRIuMAX __PRI64_PREFIX "u"
-#endif
-
-#ifndef PRIxMAX
-#define PRIxMAX __PRI64_PREFIX "x"
-#endif
-
-#ifndef PRIXMAX
-#define PRIXMAX __PRI64_PREFIX "X"
-#endif
-
-#include <signal.h>
-#endif /* _WIN32 */
-
 /*
  * This allows to add a platform specific header file. Some embedded platforms
  * sometimes miss certain types and definitions.