Skip to content

Instantly share code, notes, and snippets.

@okumura
Created March 10, 2011 12:33
Show Gist options
  • Save okumura/864029 to your computer and use it in GitHub Desktop.
Save okumura/864029 to your computer and use it in GitHub Desktop.
NULL definition on FreeBSD
#ifndef NULL
#if !defined(__cplusplus)
#define NULL ((void *) 0)
#else
#if defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4
#define NULL __null
#else
#if defined(__LP64__)
#define NULL (0L)
#else
#define NULL (0)
#endif
#endif
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment