]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus/dbus-sysdeps-util-win.c: remove unused str*_s definitions (cherry picked from...
authorTor Lillqvist <tml@iki.fi>
Wed, 22 Apr 2009 14:16:53 +0000 (16:16 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 30 Nov 2009 12:21:37 +0000 (13:21 +0100)
dbus/dbus-sysdeps-util-win.c

index d5c2ddcf644a5fa6c5d8da17a612df598e88133c..620862ffa048976f71c2245c7fc89ea4464224cb 100644 (file)
 #include <errno.h>
 #include <winsock2.h>   // WSA error codes
 
-#if defined __MINGW32__ || (defined _MSC_VER && _MSC_VER <= 1310)
-/* save string functions version
-   using DBusString needs to much time because of uncommon api 
-*/ 
-#define errno_t int
-
-errno_t strcat_s(char *dest, size_t size, char *src) 
-{
-  _dbus_assert(strlen(dest) + strlen(src) +1 <= size);
-  strcat(dest,src);
-  return 0;
-}
-
-errno_t strcpy_s(char *dest, size_t size, char *src)
-{
-  _dbus_assert(strlen(src) +1 <= size);
-  strcpy(dest,src);  
-  return 0;
-}
-#endif
-
 /**
  * Does the chdir, fork, setsid, etc. to become a daemon process.
  *