Skip to content

SIZEOF_OFF64_T checks maybe need to go away #382

Open

Description

@markcmiller86

At one time, we had quite a mix of 32 and 64 bit systems. Then, we needed to take care that when Silo was dealing with things like file sizes or file offests, the data types being used were 64 bit.

Those times are likely long passed. So, maybe we don't need to worry about whether file sizes and/or offsets are 64 bits?

Alternatively, maybe the logic should be adjusted to default to 64 bit and only do something special when not.

In particular, on macOS, the CMake check_size_type(off64_t) fails. That failure might be ok but we have CPP logic of the form #if SIZEOF_OFF64_T > 4 ... which then generates a compiler error because its undefined.

For anyone using CMake to configure silo, the solution in this case is to add -DCMAKE_C_FLAGS=-Doff64_t=off_t to the command-line used to CMake silo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions