소스 검색

Hide unused function

The create_config_file is not currently used on Windows.
Matt Clarkson 10 년 전
부모
커밋
a13cd6e0dd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/main.c

+ 2 - 0
src/main.c

@@ -255,6 +255,7 @@ static const char *get_url_to_first_open_port(const struct mg_context *ctx)
 	return url;
 }
 
+#ifdef ENABLE_CREATE_CONFIG_FILE
 static void create_config_file(const struct mg_context *ctx, const char *path)
 {
 	const struct mg_option *options;
@@ -277,6 +278,7 @@ static void create_config_file(const struct mg_context *ctx, const char *path)
 	}
 }
 #endif
+#endif
 
 static char *sdup(const char *str)
 {