From ac4f0d3784896df417282952f0495ebab70b1bdb Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 23 Mar 2007 22:20:52 +0000 Subject: [PATCH] Reduce the visibility of stdio.h because it was loaded wrongly (ie, before _GNU_SOURCE gets defined on need in portable.h, thus making getline invisible) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3356 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/gras/p2p/can/can.c | 2 +- examples/gras/p2p/chord/chord.c | 1 + examples/msg/msg_test.c | 1 + examples/msg/msg_test_surfxml_bypassed.c | 1 + examples/msg/msg_test_suspend.c | 6 +++--- examples/msg/ping_pong.c | 6 +++--- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/examples/gras/p2p/can/can.c b/examples/gras/p2p/can/can.c index 1d37042552..2cc62c042e 100644 --- a/examples/gras/p2p/can/can.c +++ b/examples/gras/p2p/can/can.c @@ -2,7 +2,7 @@ // Peer-To-Peer CAN simulator 050406 by Dytto ESIAL // ////////////////////////////////////////////////////// - +#include #include "xbt/sysdep.h" #include "gras.h" diff --git a/examples/gras/p2p/chord/chord.c b/examples/gras/p2p/chord/chord.c index 7d831ae1b9..314d6cef13 100644 --- a/examples/gras/p2p/chord/chord.c +++ b/examples/gras/p2p/chord/chord.c @@ -2,6 +2,7 @@ * vim:ts=2:sw=2:expandtab */ +#include #include "xbt/sysdep.h" #include "gras.h" diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index 9c9415930b..d5a4fd5b3b 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -5,6 +5,7 @@ /* 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. */ +#include #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */ #include "xbt/sysdep.h" /* calloc, printf */ diff --git a/examples/msg/msg_test_surfxml_bypassed.c b/examples/msg/msg_test_surfxml_bypassed.c index c5c81f79ea..4882aa200f 100644 --- a/examples/msg/msg_test_surfxml_bypassed.c +++ b/examples/msg/msg_test_surfxml_bypassed.c @@ -5,6 +5,7 @@ /* 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. */ +#include #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */ #include "surf/surfxml_parse.h" /* to override surf_parse */ #include "surf/surfxml.h" /* to hijack surf_parse_lex */ diff --git a/examples/msg/msg_test_suspend.c b/examples/msg/msg_test_suspend.c index 072d4928cf..8bcba5564b 100644 --- a/examples/msg/msg_test_suspend.c +++ b/examples/msg/msg_test_suspend.c @@ -6,7 +6,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */ -#include "xbt/sysdep.h" /* calloc, printf */ +#include "xbt/sysdep.h" /* calloc */ /* Create a log channel to have nice outputs. */ #include "xbt/log.h" @@ -72,8 +72,8 @@ int main(int argc, char *argv[]) MSG_global_init(&argc,argv); if (argc < 3) { - printf ("Usage: %s platform_file deployment_file\n",argv[0]); - printf ("example: %s msg_platform.xml msg_deployment_suspend.xml\n",argv[0]); + CRITICAL1 ("Usage: %s platform_file deployment_file\n",argv[0]); + CRITICAL1 ("example: %s msg_platform.xml msg_deployment_suspend.xml\n",argv[0]); exit(1); } test_all(argv[1],argv[2]); diff --git a/examples/msg/ping_pong.c b/examples/msg/ping_pong.c index ef92c54f3d..a89b363e67 100644 --- a/examples/msg/ping_pong.c +++ b/examples/msg/ping_pong.c @@ -6,7 +6,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */ -#include "xbt/sysdep.h" /* calloc, printf */ +#include "xbt/sysdep.h" /* calloc */ /* Create a log channel to have nice outputs. */ @@ -151,8 +151,8 @@ int main(int argc, char *argv[]) MSG_global_init(&argc,argv); if (argc < 3) { - printf ("Usage: %s platform_file deployment_file\n",argv[0]); - printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]); + CRITICAL1 ("Usage: %s platform_file deployment_file\n",argv[0]); + CRITICAL1 ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]); exit(1); } res = test_all(argv[1],argv[2]); -- 2.20.1