浏览代码

libobs: Only log distribution info on linux

Add ifdefs to only log the distribution information on linux since this
is a platform specific implementation.
fryshorts 10 年之前
父节点
当前提交
bc38bf641b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libobs/obs-nix.c

+ 4 - 0
libobs/obs-nix.c

@@ -174,6 +174,7 @@ static void log_kernel_version(void)
 	blog(LOG_INFO, "Kernel Version: %s %s", info.sysname, info.release);
 }
 
+#if defined(__linux__)
 static void log_distribution_info(void)
 {
 	FILE *fp;
@@ -216,6 +217,7 @@ static void log_distribution_info(void)
 	dstr_free(&distro);
 	free(line);
 }
+#endif
 
 void log_system_info(void)
 {
@@ -225,5 +227,7 @@ void log_system_info(void)
 #endif
 	log_memory_info();
 	log_kernel_version();
+#if defined(__linux__)
 	log_distribution_info();
+#endif
 }