[BACK]Return to config.h.post CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/config.h.post, Revision 1.5

1.1       kristaps    1: #include <sys/types.h>
                      2:
                      3: #if !defined(__BEGIN_DECLS)
                      4: #  ifdef __cplusplus
                      5: #  define      __BEGIN_DECLS           extern "C" {
                      6: #  else
                      7: #  define      __BEGIN_DECLS
                      8: #  endif
                      9: #endif
                     10: #if !defined(__END_DECLS)
                     11: #  ifdef __cplusplus
                     12: #  define      __END_DECLS             }
                     13: #  else
                     14: #  define      __END_DECLS
                     15: #  endif
                     16: #endif
                     17:
1.3       kristaps   18: #if defined(__APPLE__)
                     19: # define htobe32(x) OSSwapHostToBigInt32(x)
                     20: # define betoh32(x) OSSwapBigToHostInt32(x)
                     21: # define htobe64(x) OSSwapHostToBigInt64(x)
                     22: # define betoh64(x) OSSwapBigToHostInt64(x)
1.5     ! joerg      23: #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
1.3       kristaps   24: # define betoh32(x) be32toh(x)
                     25: # define betoh64(x) be64toh(x)
1.5     ! joerg      26: #elif defined(__OpenBSD__)
        !            27: /* Nothing */
        !            28: #else
        !            29: /* XXX Fallback */
1.3       kristaps   30: #endif
                     31:
1.1       kristaps   32: #ifndef HAVE_STRLCAT
                     33: extern size_t    strlcat(char *, const char *, size_t);
                     34: #endif
                     35: #ifndef HAVE_STRLCPY
                     36: extern size_t    strlcpy(char *, const char *, size_t);
                     37: #endif
1.2       kristaps   38: #ifndef HAVE_GETSUBOPT
                     39: extern int       getsubopt(char **, char * const *, char **);
                     40: extern char     *suboptarg;
                     41: #endif
1.4       kristaps   42: #ifndef HAVE_FGETLN
                     43: extern char     *fgetln(FILE *, size_t *);
                     44: #endif
1.1       kristaps   45:
                     46: #endif /* MANDOC_CONFIG_H */

CVSweb