fee71e7740
Feature/postprocessing * tests * passtest * fixshorttests * mosttests * improvingbasedockerfile * testspeeds * testing * host * canparallel * clean * passfullsuite * singlepagemax * test * findfeatures * findstables * tbls * tablestoo * tablestoo * lateraltests * tableloc * cleanup * inlinetable * childids * cleanup * tests
23 lines
355 B
Go
23 lines
355 B
Go
//go:build (!cgo || nocgo) && windows
|
|
|
|
package fitz
|
|
|
|
import (
|
|
"fmt"
|
|
"syscall"
|
|
)
|
|
|
|
const (
|
|
libname = "libmupdf.dll"
|
|
)
|
|
|
|
// loadLibrary loads the dll and panics on error.
|
|
func loadLibrary() uintptr {
|
|
handle, err := syscall.LoadLibrary(libname)
|
|
if err != nil {
|
|
panic(fmt.Errorf("cannot load library %s: %w", libname, err))
|
|
}
|
|
|
|
return uintptr(handle)
|
|
}
|