Changeset 220 for cpp/common/nonstd.h


Ignore:
Timestamp:
04/07/14 02:58:00 (10 years ago)
Author:
Maciej Komosinski
Message:
  • moved vsnprintf-related #defines to nonstd.h
  • ssprintf_va() now works with non-C99 conformant vsnprintf(): when possible, it obtains the required number of characters in a single call instead of iterating
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd.h

    r197 r220  
    113113//typedef char byte; //rozne srodowiska c++ definiuja byte jako unsigned char! w javie jest inaczej -> trzeba i tak zmienic w portowanych zrodlach byte na char.
    114114
     115//vsnprintf implementations support different standards, some only return -1 instead of the required number of characters
     116//these definitions are used by stl-util.cpp/ssprintf_va and SString::sprintf
     117#ifdef LINUX
     118#define VSNPRINTF_RETURNS_REQUIRED_SIZE
     119#endif
     120#if defined _WIN32 && !defined __BORLANDC__
     121#define USE_VSCPRINTF
     122#endif
     123
    115124
    116125#endif
Note: See TracChangeset for help on using the changeset viewer.