From 4581a49499c1ee29dbd8c3580844a586fceba6ea Mon Sep 17 00:00:00 2001 From: Niels-Ole Lambertz Date: Sun, 23 Jul 2023 14:17:11 +0200 Subject: [PATCH] Compiling on windows --- renderer/experimental-renderer-windows.go | 18 ++++++++++++++++++ renderer/experimental-renderer.go | 3 +++ renderer/experimental-renderer_test.go | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 renderer/experimental-renderer-windows.go diff --git a/renderer/experimental-renderer-windows.go b/renderer/experimental-renderer-windows.go new file mode 100644 index 0000000..5e0fd81 --- /dev/null +++ b/renderer/experimental-renderer-windows.go @@ -0,0 +1,18 @@ +//go:build windows +// +build windows + +package renderer + +import "errors" + +func LoadData(path string, maxZ uint32, tempFile *os.File) (*Data, error) { + return _, errors.New("not implemented on Windows") +} + +func Mmap(path string) (*[]byte, *os.File, error) { + return _, _, errors.New("not implemented on Windows") +} + +func HandleRenderRequest(w http.ResponseWriter, r *http.Request, duration time.Duration, data *Data, maxTreeDepth uint32, mmapData *[]byte) { + return _, errors.New("not implemented on Windows") +} diff --git a/renderer/experimental-renderer.go b/renderer/experimental-renderer.go index 8ebc58e..17a67ea 100644 --- a/renderer/experimental-renderer.go +++ b/renderer/experimental-renderer.go @@ -1,3 +1,6 @@ +//go:build !windows +// +build !windows + package renderer import ( diff --git a/renderer/experimental-renderer_test.go b/renderer/experimental-renderer_test.go index b6d8d3c..5c5fb8f 100644 --- a/renderer/experimental-renderer_test.go +++ b/renderer/experimental-renderer_test.go @@ -1,3 +1,6 @@ +//go:build !windows +// +build !windows + package renderer import (