From f36faa8ab3b6359f02215d731412a8274966bdd4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 7 Jun 2012 09:59:54 -0700 Subject: [PATCH] Mingw needs to use Sleep vs sleep (also seconds go to ms) --- main.cc | 6 +++++- vvp/main.cc | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 2218ff872..b2b643db7 100644 --- a/main.cc +++ b/main.cc @@ -1,5 +1,5 @@ const char COPYRIGHT[] = - "Copyright (c) 1998-2011 Stephen Williams (steve@icarus.com)"; + "Copyright (c) 1998-2012 Stephen Williams (steve@icarus.com)"; /* * This source code is free software; you can redistribute it @@ -788,7 +788,11 @@ int main(int argc, char*argv[]) fprintf( stderr, "Waiting for debugger...\n"); bool debugger_release = false; while( !debugger_release ) { +#if defined(__MINGW32__) + Sleep(1000); +#else sleep(1); +#endif } } library_suff.push_back(strdup(".v")); diff --git a/vvp/main.cc b/vvp/main.cc index 9a3595d9a..3ce61f908 100644 --- a/vvp/main.cc +++ b/vvp/main.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2012 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -289,7 +289,11 @@ int main(int argc, char*argv[]) fprintf( stderr, "Waiting for debugger...\n"); bool debugger_release = false; while( !debugger_release ) { +#if defined(__MINGW32__) + Sleep(1000); +#else sleep(1); +#endif } } @@ -353,7 +357,7 @@ int main(int argc, char*argv[]) if (version_flag) { fprintf(stderr, "Icarus Verilog runtime version " VERSION " (" VERSION_TAG ")\n\n"); - fprintf(stderr, "Copyright 1998-2010 Stephen Williams\n\n"); + fprintf(stderr, "Copyright 1998-2012 Stephen Williams\n\n"); fprintf(stderr, " This program is free software; you can redistribute it and/or modify\n" " it under the terms of the GNU General Public License as published by\n"