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