Provide stubs for spreadsheet functions when no spreadsheet support is built
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 18 Oct 2015 17:41:42 +0000 (19:41 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 18 Oct 2015 17:41:42 +0000 (19:41 +0200)
This prevents link errors when compiling with full optimisation.

src/language/data-io/get-data.c

index 3458b39e413fa0c205746977223d5023e86b3b45..8ad0d80fa7ff4e7bfc2731d83eae5a6b0287a260 100644 (file)
 static const bool odf_read_support = true;
 #else
 static const bool odf_read_support = false;
+struct spreadsheet *ods_probe (const char *filename, bool report_errors){}
+struct casereader * ods_make_reader (struct spreadsheet *spreadsheet,
+                                         const struct spreadsheet_read_options *opts){}
+void ods_unref (struct spreadsheet *r){}
 #endif
 
 #ifdef GNM_READ_SUPPORT
 static const bool gnm_read_support = true;
 #else
 static const bool gnm_read_support = false;
+struct spreadsheet *gnumeric_probe (const char *filename, bool report_errors){}
+struct casereader * gnumeric_make_reader (struct spreadsheet *spreadsheet,
+                                         const struct spreadsheet_read_options *opts){}
+void gnumeric_unref (struct spreadsheet *r){}
+
 #endif
 
 static bool parse_spreadsheet (struct lexer *lexer, char **filename,