Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Port to Windows #7

Merged
merged 11 commits into from
Oct 20, 2013
Merged

Port to Windows #7

merged 11 commits into from
Oct 20, 2013

Conversation

zcbenz
Copy link
Contributor

@zcbenz zcbenz commented Oct 18, 2013

This ports git-utils to Windows by using gyp to build libgit2, and fixes some wrong assumptions of path separator on Windows.

zcbenz added a commit that referenced this pull request Oct 20, 2013
@zcbenz zcbenz merged commit a0b5522 into master Oct 20, 2013
@zcbenz zcbenz deleted the gyp branch October 20, 2013 03:09
@mcolyer
Copy link

mcolyer commented Oct 25, 2013

I get the follow errors when building on Windows 8.1 with Visual Studio 2010 Express

error C2373: 'InterlockedIncrement': redefinition; different type modifiers
error C2373: 'InterlockedDecrement': redefinition; different type modifiers
error C2373: 'InterlockedExchangeAdd': redefinition; different type modifiers

@mcolyer mcolyer mentioned this pull request Oct 25, 2013
10 tasks
@zcbenz
Copy link
Contributor Author

zcbenz commented Oct 28, 2013

Can you paste the detailed error message? I need to know from which file this error came from.

@kevinsawicki
Copy link
Contributor

@zcbenz here is the output, looks like it occurs for three files for me:

  attr.c
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2288): error C2373: 'InterlockedIncrement' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2295): error C2373: 'InterlockedDecrement' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2314): error C2373: 'InterlockedExchangeAdd' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
  checkout.c
  hashsig.c
  push.c
  Compiling...
  filter.c
  blob.c
  config_file.c
  fetch.c
  fetchhead.c
  reflog.c
  diff_patch.c
  stash.c
  fnmatch.c
  oid.c
  thread-utils.c
  delta.c
  pack-objects.c
  tsort.c
  remote.c
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2288): error C2373: 'InterlockedIncrement' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2295): error C2373: 'InterlockedDecrement' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2314): error C2373: 'InterlockedExchangeAdd' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
  ignore.c
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2288): error C2373: 'InterlockedIncrement' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2295): error C2373: 'InterlockedDecrement' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.1\include\winbase.h(2314): error C2373: 'InterlockedExchangeAdd' : redefinition; different type modifiers [C:\Users\kevin\Documents\GitHub\git-utils\build\libgit2.vcxproj]

@zcbenz
Copy link
Contributor Author

zcbenz commented Oct 28, 2013

This is a bug of libgit2, see libgit2/libgit2#1915.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants