Clean up handling of various include file

This is in the context of the iOS port and shouldn't impact any of the
other builds.

[Dirk Hohndel: refactored the iOS patches]

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-03-06 06:52:55 -08:00 committed by Dirk Hohndel
parent 710b3615fe
commit 39313c5b33
9 changed files with 17 additions and 10 deletions

View file

@ -1,6 +1,7 @@
#include "configuredivecomputerthreads.h"
#include "libdivecomputer/hw.h"
#include "libdivecomputer.h"
#include <libdivecomputer/version.h>
#define OSTC3_GAS1 0x10
#define OSTC3_GAS2 0x11

View file

@ -923,13 +923,14 @@ int parse_csv_file(const char *filename, char **params, int pnr, const char *csv
* input file added as last parameter.
*/
#ifndef SUBSURFACE_MOBILE
if (verbose >= 2) {
fprintf(stderr, "(echo '<csv>'; cat %s;echo '</csv>') | xsltproc ", filename);
for (i=0; params[i]; i+=2)
fprintf(stderr, "--stringparam %s %s ", params[i], params[i+1]);
fprintf(stderr, "%s/xslt/csv2xml.xslt -\n", SUBSURFACE_SOURCE);
}
#endif
ret = parse_xml_buffer(filename, mem.buffer, mem.size, &dive_table, (const char **)params);
free(mem.buffer);

View file

@ -11,7 +11,7 @@
#include "libdivecomputer.h"
#include <libdivecomputer/uwatec.h>
#include <libdivecomputer/hw.h>
#include <libdivecomputer/version.h>
/* Christ. Libdivecomputer has the worst configuration system ever. */
#ifdef HW_FROG_H

View file

@ -7,7 +7,9 @@
#ifdef DC_VERSION /* prevent a warning with wingdi.h */
#undef DC_VERSION
#endif
#ifdef HAVE_LIBDIVECOMPUTER
#include <libdivecomputer/version.h>
#endif
#include <libdivecomputer/device.h>
#include <libdivecomputer/parser.h>

View file

@ -5,6 +5,7 @@
#include "gettext.h"
#include "qthelperfromc.h"
#include "git-access.h"
#include "libdivecomputer/version.h"
struct preferences prefs, informational_prefs;
struct preferences default_prefs = {