Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - I want to define a 64-bit integer variable in the program, but there are 32-bit and 64-bit variables in the device.
I want to define a 64-bit integer variable in the program, but there are 32-bit and 64-bit variables in the device.
int bits = sizeof(long);

# If the number of digits == 32

# define Int64 long

# Otherwise

# define Int64 long long

#endif

Add this to your header file, and no matter what platform you use in the future, you can use the macro Int64 to define 64-bit plastic variables ... other types of data can also be defined in a similar way. ...