BRL-CAD
common.h File Reference

Header file for the BRL-CAD common definitions. More...

#include <limits.h>
#include <stddef.h>
#include "pstdint.h"
Include dependency graph for common.h:

Go to the source code of this file.

Macros

#define __BEGIN_DECLS
 
#define __END_DECLS
 
#define HIDDEN   /***/
 
#define FMAX(a, b)   (((a)>(b))?(a):(b))
 
#define FMIN(a, b)   (((a)<(b))?(a):(b))
 
#define HAVE_SSIZE_T   1
 
#define GCC_PREREQ(major, minor)   0
 
#define ICC_PREREQ(version)   0
 
#define __attribute__(ignore)   /* empty */
 
#define __format__   format
 
#define __printf__   printf
 
#define __noreturn__   noreturn
 
#define always_inline   noinline
 
#define UNUSED(parameter)   (parameter)
 
#define LIKELY(expression)   (expression)
 
#define UNLIKELY(expression)   (expression)
 
#define DEPRECATED   /* deprecated */
 
#define __STDC_VERSION__   0
 
#define HAVE_GCC_DIAG_PRAGMAS   (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && !defined(__clang__))
 
#define HAVE_CLANG_DIAG_PRAGMAS   (defined(__clang__) && (__clang_major__ > 2 || (__clang_major__ == 2 && __clang_minor__ >= 8)))
 
#define EXTERNVARINIT
 

Typedefs

typedef ptrdiff_t ssize_t
 

Detailed Description

Header file for the BRL-CAD common definitions.

This header wraps the system-specific encapsulation of brlcad_config.h and removes need to conditionally include brlcad_config.h everywhere based on HAVE_CONFIG_H. The common definitions are symbols common to the platform being built that are either detected via configure or hand crafted, as is the case for the win32 platform.

Definition in file common.h.