patch_ccgo.go 426 B

1234567891011121314
  1. // Copyright 2025 The tk9.0-go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build linux && (386 || arm || loong64 || ppc64le || riscv64 || s390x)
  5. package img
  6. import "unsafe"
  7. // Workaround ccgo inability to handle cyclic initializers.
  8. func init() {
  9. _tiffFields[48].Ffield_subfields = uintptr(unsafe.Pointer(&_tiffFieldArray))
  10. }