X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bd7cbc6f7c9069a69935f33ab7867de949babe7..093776b9da6272771c04f848d9bd5ee28f5e06e3:/include/simgrid/barrier.h diff --git a/include/simgrid/barrier.h b/include/simgrid/barrier.h index 72f990e695..2837633ebd 100644 --- a/include/simgrid/barrier.h +++ b/include/simgrid/barrier.h @@ -1,6 +1,6 @@ /* Public interface to the Link datatype */ -/* Copyright (c) 2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -10,6 +10,12 @@ #include +#ifdef __cplusplus +constexpr int SG_BARRIER_SERIAL_THREAD = -1; +#else +#define SG_BARRIER_SERIAL_THREAD -1 +#endif + /* C interface */ SG_BEGIN_DECL()