-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fcloseall() on BSD returns void, so can't directly use it as a return on a function that returns int. instead of manually rolling a version that reports how many were closed, we just close all and say 0 (aiming to avoid any error-checking callers while still closing all handles).
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/opennurbs_defines.cpp b/opennurbs_defines.cpp | ||
index 8d5f8830..1f60f588 100644 | ||
--- a/opennurbs_defines.cpp | ||
+++ b/opennurbs_defines.cpp | ||
@@ -498,6 +498,9 @@ int ON::CloseAllFiles() | ||
#elif defined(ON_RUNTIME_APPLE) || defined(ON_RUNTIME_ANDROID) | ||
//fcloseall is not supported on mac/ios or android | ||
return EOF; | ||
+#elif defined(BSD) | ||
+ fcloseall(); | ||
+ return 0; | ||
#else | ||
return fcloseall(); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters