mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
(VSPRINTF_LENGTH): New macro; definition depends on
VSPRINTF_RETURNS_LENGTH. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1897 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3fd80d8904
commit
af8629baf4
1 changed files with 7 additions and 0 deletions
|
@ -126,4 +126,11 @@ extern const char o_NeXT_cc_version[];
|
|||
#define LONG2PTR(L) (((char*)0)+(L))
|
||||
#endif
|
||||
|
||||
#if VSPRINTF_RETURNS_LENGTH
|
||||
#define VSPRINTF_LENGTH(VSPF_CALL) (VSPF_CALL)
|
||||
#else
|
||||
#define VSPRINTF_LENGTH(VSPF_CALL) strlen((VSPF_CALL))
|
||||
#endif /* VSPRINTF_RETURNS_LENGTH */
|
||||
|
||||
|
||||
#endif /* __preface_h_OBJECTS_INCLUDE */
|
||||
|
|
Loading…
Reference in a new issue