]> git.proxmox.com Git - qemu.git/blobdiff - libfdt_env.h
slirp: Canonicalize restrict syntax
[qemu.git] / libfdt_env.h
index e154b8ef1fe452b7af48d0f826eb9cc797c9e2bf..90d7f3b162ccea53958aa1a6d05049c9f53ac56f 100644 (file)
@@ -9,8 +9,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  *
  * Copyright IBM Corp. 2008
  * Authors: Hollis Blanchard <hollisb@us.ibm.com>
 #ifndef _LIBFDT_ENV_H
 #define _LIBFDT_ENV_H
 
-#include <stddef.h>
-#include <stdint.h>
-#include <string.h>
-#include <endian.h>
-#include <byteswap.h>
+#include "bswap.h"
 
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
 #define fdt32_to_cpu(x)                (x)
 #define cpu_to_fdt32(x)                (x)
 #define fdt64_to_cpu(x)                (x)