Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/ndb/include/have_little_endian.inc |
# Check if platform is little endian perl; my $packed= pack("i", 0x676e6162); my $is_le = ($packed =~ /bang/); open (F, ">" . $ENV{'MYSQL_TMP_DIR'} . "/isle.inc"); print F "let \$is_le= $is_le;\n"; close F; EOF --source $MYSQL_TMP_DIR/isle.inc --remove_file $MYSQL_TMP_DIR/isle.inc if (! $is_le) { --skip Works only on little-endian }