diff -ur /Users/cs/biosig4c++-1.5.10/CMakeLists.txt ./CMakeLists.txt
old
|
new
|
|
7 | 7 | # Version number |
8 | 8 | set (libbiosig_VERSION_MAJOR 1) |
9 | 9 | set (libbiosig_VERSION_MINOR 5) |
10 | | set (libbiosig_VERSION_PATCH 0) |
| 10 | set (libbiosig_VERSION_PATCH 10) |
11 | 11 | |
12 | 12 | find_program (GAWK NAMES gawk) |
13 | 13 | |
… |
… |
|
23 | 23 | DEPENDS units.awk extern/units.csv |
24 | 24 | ) |
25 | 25 | |
| 26 | add_custom_target (annexb |
| 27 | COMMAND ${GAWK} -f annotatedECG.awk extern/11073-10102-AnnexB.txt > "11073-10102-AnnexB.i" |
| 28 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
| 29 | DEPENDS annotatedECG.awk extern/11073-10102-AnnexB.txt |
| 30 | ) |
| 31 | |
26 | 32 | set (headers |
27 | 33 | t210/abfheadr.h |
28 | 34 | XMLParser/tinyxml.h |
… |
… |
|
61 | 67 | ) |
62 | 68 | endif () |
63 | 69 | |
| 70 | if (APPLE) |
| 71 | list (APPEND sources |
| 72 | win32/getdelim.c |
| 73 | win32/getline.c |
| 74 | ) |
| 75 | endif () |
| 76 | |
64 | 77 | # Cannot have same name for static and shared library, |
65 | 78 | # so we'll correct that later on |
66 | 79 | add_library (biosigstatic STATIC |
… |
… |
|
80 | 93 | ) |
81 | 94 | endif () |
82 | 95 | |
83 | | add_dependencies (biosigstatic eventcodes units) |
84 | | add_dependencies (biosigshared eventcodes units) |
| 96 | add_dependencies (biosigstatic eventcodes units annexb) |
| 97 | add_dependencies (biosigshared eventcodes units annexb) |
85 | 98 | |
86 | 99 | if (USE_ZLIB) |
87 | 100 | add_definitions (-D=WITH_ZLIB) |
Only in ./: patch-v3.diff
diff -ur /Users/cs/biosig4c++-1.5.10/win32/getdelim.c ./win32/getdelim.c
old
|
new
|
|
19 | 19 | |
20 | 20 | /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc |
21 | 21 | optimizes away the lineptr == NULL || n == NULL || fp == NULL tests below. */ |
| 22 | #if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) |
| 23 | |
22 | 24 | #define _GL_ARG_NONNULL(params) |
23 | 25 | |
24 | 26 | #include <stdio.h> |
… |
… |
|
27 | 29 | #include <stdint.h> |
28 | 30 | #include <stdlib.h> |
29 | 31 | #include <errno.h> |
| 32 | #if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L |
| 33 | #include <unistd.h> |
| 34 | #endif |
30 | 35 | |
31 | 36 | #ifndef SSIZE_MAX |
32 | 37 | # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) |
… |
… |
|
131 | 136 | |
132 | 137 | return result; |
133 | 138 | } |
| 139 | #endif |
diff -ur /Users/cs/biosig4c++-1.5.10/win32/getline.c ./win32/getline.c
old
|
new
|
|
16 | 16 | |
17 | 17 | /* Written by Simon Josefsson. */ |
18 | 18 | |
| 19 | #if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) |
| 20 | |
19 | 21 | #include <stdio.h> |
| 22 | #if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L |
| 23 | #include <unistd.h> |
| 24 | #endif |
20 | 25 | |
21 | 26 | ssize_t |
22 | 27 | getline (char **lineptr, size_t *n, FILE *stream) |
23 | 28 | { |
24 | 29 | return getdelim (lineptr, n, '\n', stream); |
25 | 30 | } |
| 31 | #endif |