/*
This file is part of GNUnet.
- Copyright (C) 2012 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2012 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
* @brief W32 integration for GNS
* @author LRN
*/
+/* Instead of including gnunet_common.h */
+#define GNUNET_memcpy(dst,src,n) do { if (0 != n) { (void) memcpy (dst,src,n); } } while (0)
+
#include <ws2tcpip.h>
#include <windows.h>
#include <nspapi.h>
struct hostent *he = malloc (result->lpBlob->cbSize);
if (he != NULL)
{
- memcpy (he, result->lpBlob->pBlobData, result->lpBlob->cbSize);
+ GNUNET_memcpy (he, result->lpBlob->pBlobData, result->lpBlob->cbSize);
UnpackHostEnt (he);
print_hostent (he);
free (he);