Skip to content

Commit

Permalink
Merge pull request libfann#47 from joelself/master
Browse files Browse the repository at this point in the history
Make fann_default_error_log visible externally to avoid unresolved ex…
  • Loading branch information
steffennissen committed Nov 1, 2015
2 parents 220647e + b679f72 commit ee30cd8
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 ee30cd8

Please sign in to comment.