Issue #604 - Remove 'sprtf' code if not ENABLE_DEBUG_LOG
This commit is contained in:
parent
3b154dc407
commit
41675e75f7
|
@ -28,6 +28,8 @@
|
|||
#include <stdlib.h> /* for exit() in unix */
|
||||
#include "sprtf.h"
|
||||
|
||||
#ifdef ENABLE_DEBUG_LOG
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# ifndef _CRT_SECURE_NO_DEPRECATE
|
||||
# define _CRT_SECURE_NO_DEPRECATE
|
||||
|
@ -416,4 +418,5 @@ int MCDECL wsprtf( PTSTR pf, ... )
|
|||
|
||||
#endif /* #ifdef UNICODE */
|
||||
|
||||
#endif /* #ifdef ENABLE_DEBUG_LOG */
|
||||
/* eof - sprtf.c */
|
||||
|
|
14
src/sprtf.h
14
src/sprtf.h
|
@ -26,6 +26,7 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifdef ENABLE_DEBUG_LOG
|
||||
/*=============================================================================
|
||||
* EXTRA Debugging, and information aid.
|
||||
*
|
||||
|
@ -51,12 +52,6 @@ extern "C" {
|
|||
# define SPRTF sprtf
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_DEBUG_LOG
|
||||
# define DEBUG_LOG(ARG) do { ARG; } while(0)
|
||||
#else
|
||||
# define DEBUG_LOG(ARG)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define MCDECL _cdecl
|
||||
#else
|
||||
|
@ -92,9 +87,14 @@ TIDY_EXPORT char *get_date_time_stg(void);
|
|||
TIDY_EXPORT int gettimeofday(struct timeval *tp, void *tzp);
|
||||
#endif
|
||||
|
||||
# define DEBUG_LOG(ARG) do { ARG; } while(0)
|
||||
|
||||
#else
|
||||
# define DEBUG_LOG(ARG)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* #ifndef _SPRTF_HXX_*/
|
||||
/* eof - sprtf.h */
|
||||
|
|
Loading…
Reference in a new issue