Reactos
at master 70 lines 1.5 kB view raw
1#ifndef __CMD_PRECOMP_H 2#define __CMD_PRECOMP_H 3 4#ifdef _MSC_VER 5#pragma warning ( disable : 4103 ) /* use #pragma pack to change alignment */ 6#undef _CRT_SECURE_NO_DEPRECATE 7#define _CRT_SECURE_NO_DEPRECATE 8#endif /*_MSC_VER */ 9 10#include <stdio.h> 11#include <stdarg.h> 12#include <stdlib.h> 13#include <malloc.h> 14#include <tchar.h> 15 16#define WIN32_NO_STATUS 17#include <windef.h> 18#include <winbase.h> 19#include <winnls.h> 20#include <winreg.h> 21#include <winuser.h> 22#include <wincon.h> 23#include <shellapi.h> 24 25#define NTOS_MODE_USER 26#include <ndk/rtlfuncs.h> 27 28#include <strsafe.h> 29 30#include <conutils.h> 31 32#include "resource.h" 33 34#include "cmd.h" 35#include "config.h" 36#include "batch.h" 37 38#include <wine/debug.h> 39WINE_DEFAULT_DEBUG_CHANNEL(cmd); 40 41#ifdef UNICODE 42#define debugstr_aw debugstr_w 43#else 44#define debugstr_aw debugstr_a 45#endif 46 47#ifdef FEATURE_DYNAMIC_TRACE 48 49extern BOOL g_bDynamicTrace; 50void CmdTrace(INT type, LPCSTR file, INT line, LPCSTR func, LPCSTR fmt, ...); 51 52#undef FIXME 53#define FIXME(fmt, ...) \ 54 CmdTrace(__WINE_DBCL_FIXME, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__) 55 56#undef ERR 57#define ERR(fmt, ...) \ 58 CmdTrace(__WINE_DBCL_ERR, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__) 59 60#undef WARN 61#define WARN(fmt, ...) \ 62 CmdTrace(__WINE_DBCL_WARN, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__) 63 64#undef TRACE 65#define TRACE(fmt, ...) \ 66 CmdTrace(__WINE_DBCL_TRACE, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__) 67 68#endif /* def FEATURE_DYNAMIC_TRACE */ 69 70#endif /* __CMD_PRECOMP_H */