Skip to content
Snippets Groups Projects
Commit 33c2aa21 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected the missing inclusion of <string.h> in random.h that is needed for memcpy().

parent 77820a02
No related branches found
No related tags found
No related merge requests found
......@@ -1099,7 +1099,6 @@ int main(int argc, char *argv[]) {
if (s.periodic) gravity_exact_force_ewald_init(e.s->dim[0]);
#endif
if (!restart) {
#ifdef WITH_MPI
......
......@@ -24,8 +24,13 @@
#include "../config.h"
/* Standard header */
#include <errno.h>
#include <ieee754.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
/**
* @brief The categories of random number generated.
......@@ -50,11 +55,6 @@ enum random_number_type {
random_number_BH_swallow = 4947009007LL
};
#include <errno.h>
#include <ieee754.h>
#include <limits.h>
#include <sys/types.h>
/* Inline the default RNG functions to avoid costly function calls. These
functions are minor modifications, but functional equivalents, of their glibc
counterparts. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment