Skip to content

Commit

Permalink
Merge pull request #350 from timsneath/char
Browse files Browse the repository at this point in the history
Hide Char in preparation for new FFI
  • Loading branch information
Tim Sneath authored Jan 21, 2022
2 parents 2a44b52 + 98ccb60 commit 7c5d333
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion lib/src/structs.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
// requirement for.
// -----------------------------------------------------------------------------

import 'dart:ffi';
// The new `Char` type conflicts with CHAR_INFO.Char. Hiding the former for now.
// ignore: undefined_hidden_name
import 'dart:ffi' hide Char;

import 'dart:typed_data';

import 'package:ffi/ffi.dart';
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: win32
description: A Dart library for accessing common Win32 APIs using FFI. No C required!
version: 2.3.7
version: 2.3.8
homepage: https://win32.pub
repository: https://github.com/timsneath/win32
issue_tracker: https://github.com/timsneath/win32/issues
Expand All @@ -13,11 +13,11 @@ platforms:
windows:

dependencies:
ffi: ^1.0.0
ffi: ^1.1.0

dev_dependencies:
args: ^2.3.0
lints: ^1.0.1
path: ^1.8.1
test: ^1.20.1
winmd: 1.0.23 # Pinned deliberately
winmd: 1.0.24 # Pinned deliberately
5 changes: 4 additions & 1 deletion tool/metadata/generate_win32_structs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const structFileHeader = '''
// requirement for.
// -----------------------------------------------------------------------------
import 'dart:ffi';
// The new `Char` type conflicts with CHAR_INFO.Char. Hiding the former for now.
// ignore: undefined_hidden_name
import 'dart:ffi' hide Char;
import 'dart:typed_data';
import 'package:ffi/ffi.dart';
Expand Down

0 comments on commit 7c5d333

Please sign in to comment.