OSDN Git Service

Libpciaccess on Solaris Initial integration
[android-x86/external-libpciaccess.git] / src / common_interface.c
index 5b07d3c..3b20937 100644 (file)
 # define HTOLE_16(x)   (x)
 # define LETOH_32(x)   (x)
 # define HTOLE_32(x)   (x)
-#endif
+#endif /* linux */
+
+#elif defined(__sun)
+#define        LETOH_16(x)     (x)
+#define        HTOLE_16(x)     (x)
+#define        LETOH_32(x)     (x)
+#define        HTOLE_32(x)     (x)
 
 #else
 
@@ -59,7 +65,7 @@
 #define LETOH_32(x)    le32toh(x)
 #define HTOLE_32(x)    htole32(x)
 
-#endif
+#endif /* others */
 
 /**
  * Read a device's expansion ROM.