-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AIX compilation fix for io classes (#3275)
Summary: in AIX OS ,as fileno is defined as C macro, we get the compilation error during preprocessing step. In file included from /ranjit/Faiss/faiss/faiss/invlists/InvertedListsIOHook.h:10: /ranjit/Faiss/faiss/faiss/impl/io.h:35:17: error: expected member name or ';' after declaration specifiers 35 | virtual int fileno(); | ~~~~~~~~~~~ ^ /usr/include/stdio.h:517:30: note: expanded from macro 'fileno' 517 | #define fileno(__p) ((__p)->_file) Pull Request resolved: #3275 Reviewed By: algoriddle Differential Revision: D54944388 Pulled By: mdouze fbshipit-source-id: 40c4314de93547778ac274281245ff59e3a18b6d
- Loading branch information
1 parent
dafdff1
commit e99ad12
Showing
2 changed files
with
16 additions
and
8 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