PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ is_bigendian()

static int is_bigendian ( void  )
static

Definition at line 569 of file pgsql2shp-core.c.

Referenced by ShpDumperCreate().

570 {
571  int test = 1;
572 
573  if ( (((char *)(&test))[0]) == 1)
574  {
575  return 0; /*NDR (little_endian) */
576  }
577  else
578  {
579  return 1; /*XDR (big_endian) */
580  }
581 }
Here is the caller graph for this function: