• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisión2c69348334acb984d550e050ad205d71c36c1bd1 (tree)
Tiempo2022-10-04 13:45:40
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

Next attempt to fix

Cambiar Resumen

Diferencia incremental

diff -r 7f0af3aeca88 -r 2c69348334ac include/ctools/std/string.h
--- a/include/ctools/std/string.h Tue Oct 04 07:36:57 2022 +0300
+++ b/include/ctools/std/string.h Tue Oct 04 07:45:40 2022 +0300
@@ -66,6 +66,9 @@
6666 }
6767
6868 #if defined (CT_OS_WINDOWS)
69+
70+extern CT_SHARED_API char* strndup(const char* s, size_t n) CT_NOEXCEPT;
71+
6972 # ifdef CT_COMPL_BCC
7073 static CT_FORCEINLINE char* strdup(const char* s) CT_NOEXCEPT
7174 {
@@ -74,9 +77,6 @@
7477 # else
7578 # define strdup(str) _strdup(str)
7679 # endif
77-
78-extern CT_SHARED_API char* strndup(const char* s, size_t n) CT_NOEXCEPT;
79-
8080 #endif
8181
8282 /*
Show on old repository browser