Skip to content

Commit 856edf8

Browse files
committed
Fix linux build
1 parent 6bbae76 commit 856edf8

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/CompilerOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function(create_compiler_opts target)
3030
-Winline
3131
-Wno-unused-parameter
3232
-Wno-missing-field-initializers
33-
$<IF:$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,11>,-Wno-stringop-overflow,>>
33+
$<IF:$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,11>,-Wno-stringop-overflow,>
3434
$<$<CONFIG:Release>:
3535
-flto=auto # link time optimizations
3636
-O3 # max optimization

code/api/shared/q_string.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ If you have questions concerning this license or the applicable additional terms
4141
#include <ctype.h>
4242
#include <errno.h>
4343
#include <math.h>
44-
#include <stddef.h>
4544
#include <stdio.h>
4645
#include <stdarg.h>
4746
#include <stdlib.h>

code/api/shared/q_string.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ If you have questions concerning this license or the applicable additional terms
3838
#pragma once
3939

4040
#include "q_primitives.h"
41+
#include <stddef.h>
4142

4243
#if defined(__cplusplus)
4344
extern "C" {

0 commit comments

Comments
 (0)