diff -ur ../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 | win32/getlogin.c |
| 75 | ) |
| 76 | endif () |
| 77 | |
64 | 78 | # Cannot have same name for static and shared library, |
65 | 79 | # so we'll correct that later on |
66 | 80 | add_library (biosigstatic STATIC |
… |
… |
|
80 | 94 | ) |
81 | 95 | endif () |
82 | 96 | |
83 | | add_dependencies (biosigstatic eventcodes units) |
84 | | add_dependencies (biosigshared eventcodes units) |
| 97 | add_dependencies (biosigstatic eventcodes units annexb) |
| 98 | add_dependencies (biosigshared eventcodes units annexb) |
85 | 99 | |
86 | 100 | if (USE_ZLIB) |
87 | 101 | add_definitions (-D=WITH_ZLIB) |
diff -ur ../biosig4c++-1.5.10/win32/getdelim.c ./win32/getdelim.c
old
|
new
|
|
27 | 27 | #include <stdint.h> |
28 | 28 | #include <stdlib.h> |
29 | 29 | #include <errno.h> |
| 30 | #ifdef MACPORTS |
| 31 | #include <unistd.h> |
| 32 | #endif |
30 | 33 | |
31 | 34 | #ifndef SSIZE_MAX |
32 | 35 | # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) |
diff -ur ../biosig4c++-1.5.10/win32/getline.c ./win32/getline.c
old
|
new
|
|
17 | 17 | /* Written by Simon Josefsson. */ |
18 | 18 | |
19 | 19 | #include <stdio.h> |
| 20 | #ifdef MACPORTS |
| 21 | #include <unistd.h> |
| 22 | #endif |
20 | 23 | |
21 | 24 | ssize_t |
22 | 25 | getline (char **lineptr, size_t *n, FILE *stream) |