Skip to content

Commit

Permalink
Make fann_default_error_log visible externally to avoid unresolved ex…
Browse files Browse the repository at this point in the history
…ternal errors when linking against fannfloat.lib
  • Loading branch information
joelself committed Nov 1, 2015
1 parent 6bc3459 commit b679f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/fann_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
#endif
#endif


FILE * fann_default_error_log = (FILE *)-1;
FANN_EXTERNAL extern FILE * FANN_API fann_default_error_log = (FILE *)-1;

/* resets the last error number
*/
Expand Down
2 changes: 1 addition & 1 deletion src/include/fann_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ FANN_EXTERNAL char *FANN_API fann_get_errstr(struct fann_error *errdat);
*/
FANN_EXTERNAL void FANN_API fann_print_error(struct fann_error *errdat);

extern FILE * fann_default_error_log;
FANN_EXTERNAL extern FILE * fann_default_error_log;

#endif

0 comments on commit b679f72

Please sign in to comment.