| 1 | /* librist. Copyright © 2026 SipRadius LLC. All right reserved. |
| 2 | * Author: Sergio Ammirata, Ph.D. <[email protected]> |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-2-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef LIBRIST_TOOLS_STRING_SHIM_H |
| 8 | #define LIBRIST_TOOLS_STRING_SHIM_H |
| 9 | |
| 10 | #include <string.h> |
| 11 | |
| 12 | #if defined(_WIN32) || defined(_WIN64) |
| 13 | /* Microsoft's CRT does not ship the C99 strtok_r; the equivalent is |
| 14 | * strtok_s. Same signature, same semantics. */ |
| 15 | #define strtok_r strtok_s |
| 16 | #endif |
| 17 | |
| 18 | #endif |