mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
Cleanup FreeBSD preprocessor checks (if vs ifdef)
Should be equivalent but checking if the value is defined (`#ifdef`) is cleaner than checking if it is set to something different from 0 (`#if`).
This commit is contained in:
parent
0c987470af
commit
becb70f09d
4 changed files with 8 additions and 8 deletions
|
@ -22,8 +22,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <malloc.h>
|
||||
#elif __FreeBSD__
|
||||
#include<stdlib.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <malloc.h>
|
||||
#elif __FreeBSD__
|
||||
#include<stdlib.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <malloc.h>
|
||||
#elif __FreeBSD__
|
||||
#include<stdlib.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <malloc.h>
|
||||
#elif __FreeBSD__
|
||||
#include<stdlib.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue