Skip to content

Commit

Permalink
Compiling on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsole committed Jul 23, 2023
1 parent 61dd792 commit 4581a49
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions renderer/experimental-renderer-windows.go
Original file line number Diff line number Diff line change
@@ -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")
}
3 changes: 3 additions & 0 deletions renderer/experimental-renderer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !windows
// +build !windows

package renderer

import (
Expand Down
3 changes: 3 additions & 0 deletions renderer/experimental-renderer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !windows
// +build !windows

package renderer

import (
Expand Down

0 comments on commit 4581a49

Please sign in to comment.