0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

libobs: Only log distribution info on linux

Add ifdefs to only log the distribution information on linux since this
is a platform specific implementation.
This commit is contained in:
fryshorts 2015-05-06 21:28:35 +02:00
parent ceb1b218f1
commit bc38bf641b

View File

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