ce7ecc2a122a671bc14fc56503456889333b9d53
[cvc5.git] / src / lib / ffs.h
1 /********************* */
2 /*! \file ffs.h
3 ** \verbatim
4 ** Top contributors (to current version):
5 ** Morgan Deters, Tim King
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS
8 ** in the top-level source directory) and their institutional affiliations.
9 ** All rights reserved. See the file COPYING in the top-level source
10 ** directory for licensing information.\endverbatim
11 **
12 ** \brief Replacement for ffs() for systems without it (like Win32)
13 **
14 ** Replacement for ffs() for systems without it (like Win32).
15 **/
16
17 #include "cvc4_private.h"
18
19 #ifndef CVC4__LIB__FFS_H
20 #define CVC4__LIB__FFS_H
21
22 //We include this for HAVE_FFS
23 #include "cvc4autoconfig.h"
24
25 #ifdef HAVE_FFS
26
27 // available in strings.h
28 #include <strings.h>
29
30 #else /* ! HAVE_FFS */
31
32 #include "lib/replacements.h"
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37
38 int ffs(int i);
39
40 #ifdef __cplusplus
41 }/* extern "C" */
42 #endif /* __cplusplus */
43
44 #endif /* HAVE_FFS */
45 #endif /* CVC4__LIB__FFS_H */