From 11d2b50b18560c1a59435ee2b2d9afea39a2abe8 Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 29 Jan 2009 22:47:17 +0000 Subject: [PATCH] Wrap fix_fc function in #ifdef WIN32; fix formatting --- lib/common/utils.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/common/utils.c b/lib/common/utils.c index c3aaf02cb..c01645d32 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1861,18 +1861,19 @@ void gv_nodesize(node_t * n, boolean flip) } } +#ifdef WIN32 void fix_fc(void) { - char buf[28192]; - char buf2[28192]; - int cur=0; - FILE* fp; - if((fp = fopen("fix-fc.exe", "r")) == NULL) - return ; - if (!system ("fix-fc.exe")) - { - system ("del fc-fix.exe"); - system ("dot -c"); //run dot -c once too since we already run things :) - } + char buf[28192]; + char buf2[28192]; + int cur=0; + FILE* fp; + if((fp = fopen("fix-fc.exe", "r")) == NULL) + return ; + if (!system ("fix-fc.exe")) { + system ("del fc-fix.exe"); + system ("dot -c"); //run dot -c once too since we already run things :) + } } +#endif -- 2.40.0