OS detection through Cmake

This commit is contained in:
2021-09-08 11:19:24 -07:00
parent dc8e8a27fe
commit 2e89a903ec
5 changed files with 26 additions and 3 deletions

View File

@ -3,7 +3,9 @@
#include <string.h>
#include <limits.h>
#ifdef __linux__
#include <bsd/stdlib.h>
#endif
#include "input.h"

View File

@ -1,7 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef __linux__
#include <bsd/stdlib.h>
#endif
#include "advent2015.h"
#include "advent2016.h"