I'm porting some code from Intel Fortran to gfortran and I can not figure out how to port Intel's INT_PTR_KIND() function.
program main
integer (INT_PTR_KIND()) v1
integer v2
print*, "sizeof v1:", sizeof(v1)
print*, "sizeof v2:", sizeof(v2)
print*, "sizeof INT_PTR_KIND:", INT_PTR_KIND()
end program main
gives me with Intel compiler following:
sizeof v1: 8
sizeof v2: 4
sizeof INT_PTR_KIND: 8
Please, how can I achieve following results in gfortran? I have tried with kind(1), sizeof,...everything gives me 4.