1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Cleanup legacy symbols: basename, index

modified:   conf.h
https://github.com/upx/upx/issues/257
This commit is contained in:
John Reiser 2019-03-31 10:12:41 -07:00
parent 8aadbcd786
commit 47ddace96a

View File

@ -230,10 +230,9 @@ typedef size_t upx_rsize_t;
#endif #endif
// avoid warnings about shadowing global functions // avoid warnings about shadowing global functions
#undef index #undef index /* <strings.h> BSD legacy; removed by POSIX.1-2008 */
#define basename upx_basename #define index upx_index /* prefer strchr() instead of index() */
#define index upx_index #define outp upx_outp /* removed by VS2015; instead: _outp */
#define outp upx_outp
#undef PAGE_MASK #undef PAGE_MASK
#undef PAGE_SIZE #undef PAGE_SIZE