mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 15:26:12 +00:00
using c17
This commit is contained in:
@@ -9,7 +9,7 @@ LDFLAGS ?=
|
|||||||
# =====
|
# =====
|
||||||
_PLUGIN = libjanus_ustreamer.so
|
_PLUGIN = libjanus_ustreamer.so
|
||||||
|
|
||||||
_CFLAGS = -fPIC -MD -c -std=c11 -Wall -Wextra -D_GNU_SOURCE $(shell pkg-config --cflags glib-2.0) $(CFLAGS)
|
_CFLAGS = -fPIC -MD -c -std=c17 -Wall -Wextra -D_GNU_SOURCE $(shell pkg-config --cflags glib-2.0) $(CFLAGS)
|
||||||
_LDFLAGS = -shared -lm -pthread -lrt -ljansson -lopus -lasound -lspeexdsp $(shell pkg-config --libs glib-2.0) $(LDFLAGS)
|
_LDFLAGS = -shared -lm -pthread -lrt -ljansson -lopus -lasound -lspeexdsp $(shell pkg-config --libs glib-2.0) $(LDFLAGS)
|
||||||
|
|
||||||
_SRCS = $(shell ls src/uslibs/*.c src/*.c)
|
_SRCS = $(shell ls src/uslibs/*.c src/*.c)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ whitelist_externals = cppcheck
|
|||||||
commands = cppcheck \
|
commands = cppcheck \
|
||||||
-j4 \
|
-j4 \
|
||||||
--force \
|
--force \
|
||||||
--std=c11 \
|
--std=c17 \
|
||||||
--error-exitcode=1 \
|
--error-exitcode=1 \
|
||||||
--quiet \
|
--quiet \
|
||||||
--enable=warning,unusedFunction,portability,performance,style \
|
--enable=warning,unusedFunction,portability,performance,style \
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ if __name__ == "__main__":
|
|||||||
Extension(
|
Extension(
|
||||||
"ustreamer",
|
"ustreamer",
|
||||||
libraries=["rt", "m", "pthread"],
|
libraries=["rt", "m", "pthread"],
|
||||||
undef_macros=["NDEBUG"],
|
extra_compile_args=["-std=c17", "-D_GNU_SOURCE"],
|
||||||
|
undef_macros=["NDEBUG"],
|
||||||
sources=_find_sources(".c"),
|
sources=_find_sources(".c"),
|
||||||
depends=_find_sources(".h"),
|
depends=_find_sources(".h"),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ LDFLAGS ?=
|
|||||||
_USTR = ustreamer.bin
|
_USTR = ustreamer.bin
|
||||||
_DUMP = ustreamer-dump.bin
|
_DUMP = ustreamer-dump.bin
|
||||||
|
|
||||||
_CFLAGS = -MD -c -std=c11 -Wall -Wextra -D_GNU_SOURCE $(CFLAGS)
|
_CFLAGS = -MD -c -std=c17 -Wall -Wextra -D_GNU_SOURCE $(CFLAGS)
|
||||||
_LDFLAGS = $(LDFLAGS)
|
_LDFLAGS = $(LDFLAGS)
|
||||||
|
|
||||||
_COMMON_LIBS = -lm -ljpeg -pthread -lrt
|
_COMMON_LIBS = -lm -ljpeg -pthread -lrt
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user