Skip to content

Commit

Permalink
cgosqlite: cleanup the import layout some more
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed May 24, 2024
1 parent 99c0716 commit 408f95f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
14 changes: 0 additions & 14 deletions cgosqlite/cgosqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,7 @@ package cgosqlite
// // Select POSIX 2014 at least for clock_gettime.
// #cgo CFLAGS: -D_XOPEN_SOURCE=600
// #cgo CFLAGS: -D_DARWIN_C_SOURCE=1
// #cgo linux CFLAGS: -std=c99
//
// // On Android, unlike Linux, there are no separate libpthread or librt
// // libraries. That functionality is included directly in libc, which does not
// // need to be explicitly linked against. See
// // https://developer.android.com/ndk/guides/stable_apis#c_library.
// #cgo android LDFLAGS: -ldl -lm
// #cgo linux,!android LDFLAGS: -ldl -lm -lrt
//
// #include <stdint.h>
// #include <stdlib.h>
// #include <string.h>
// #include <pthread.h>
// #include <sqlite3.h>
// #include <time.h>
// #include "cgosqlite.h"
import "C"
import (
Expand Down
4 changes: 3 additions & 1 deletion cgosqlite/cgosqlite.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <stdint.h>
#include "sqlite3.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

// uintptr versions of sqlite3 pointer types, to avoid allocations
Expand Down

0 comments on commit 408f95f

Please sign in to comment.