/* add all the starting basic types */
add_type(1,"int");
- add_type(1,"long");
+ add_type(1,"int32_t");
add_type(1,"short");
add_type(1,"bool");
add_type(1,"u_int");
- add_type(1,"u_long");
+ add_type(1,"u_int32_t");
add_type(1,"u_short");
}
f_print(fout, "#include <rpc/rpc.h>\n\n");
+ f_print(fout, "#ifndef IXDR_GET_INT32\n");
+ f_print(fout, "#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))\n");
+ f_print(fout, "#endif\n");
+ f_print(fout, "#ifndef IXDR_PUT_INT32\n");
+ f_print(fout, "#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))\n");
+ f_print(fout, "#endif\n");
+ f_print(fout, "#ifndef IXDR_GET_U_INT32\n");
+ f_print(fout, "#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))\n");
+ f_print(fout, "#endif\n");
+ f_print(fout, "#ifndef IXDR_PUT_U_INT32\n");
+ f_print(fout, "#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))\n");
+ f_print(fout, "#endif\n");
+
tell = ftell(fout);
/* print data definitions */
while ((def = get_definition()) != NULL) {