Compiles in MSVC with cmake
[alexxy/gromacs.git] / src / gmxlib / gmx_fatal.c
index 77027389764380a957b8b632a9d6b33437a5c3f3..4592227d0273710b0e2136bb2505bd165c103ac9 100644 (file)
@@ -752,20 +752,20 @@ void _gmx_error(const char *key,const char *msg,const char *file,int line)
 {
   char buf[10240],tmpbuf[1024];
   int  cqnum;
+  const char *llines = "-------------------------------------------------------";
 
 #ifdef GMX_THREADS
     tMPI_Thread_mutex_lock(&debug_mutex);
 #endif
   /* protect the audience from suggestive discussions */
-  const char *lines = "-------------------------------------------------------";
   
   cool_quote(tmpbuf,1023,&cqnum);
   sprintf(buf,"\n%s\nProgram %s, %s\n"
          "Source code file: %s, line: %d\n\n"
          "%s:\n%s\nFor more information and tips for trouble shooting please check the GROMACS Wiki at\n"
          "http://wiki.gromacs.org/index.php/Errors\n%s\n\n%s\n",
-         lines,ShortProgram(),GromacsVersion(),file,line,
-         gmx_strerror(key),msg ? msg : warn_buf,lines,tmpbuf);
+         llines,ShortProgram(),GromacsVersion(),file,line,
+         gmx_strerror(key),msg ? msg : warn_buf,llines,tmpbuf);
 #ifdef GMX_THREADS
     tMPI_Thread_mutex_unlock(&debug_mutex);
 #endif