cgoso.c 325 B

1234567891011121314
  1. // Copyright 2013 The 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. #include "_cgo_export.h"
  5. #if defined(WIN32) || defined(_AIX)
  6. extern void setCallback(void *);
  7. void init() {
  8. setCallback(goCallback);
  9. }
  10. #else
  11. void init() {}
  12. #endif