tukaani-project / xz

XZ Utils
https://tukaani.org/xz/
Other
532 stars 95 forks source link

Fix error mythread.h #59

Closed Jamaika1 closed 1 year ago

Jamaika1 commented 1 year ago
mythread.h:381:48: error: 'once' undeclared (first use in this function); did you mean 'once_'?
  381 |                         if (!InitOnceComplete(&once, 0, NULL)) \
      |                                                ^~~~
crc64_small.c:47:9: note: in expansion of macro 'mythread_once'
   47 |         mythread_once(crc64_init);
      |         ^~~~~~~~~~~~~

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming, typo fix) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior?

Related Issue URL:

What is the new behavior?

-

-

Does this introduce a breaking change?

Other information

JiaT75 commented 1 year ago

@Jamaika1 Thanks for the PR! Looks like this typo had been in the code for some time, so your fix is very appreciated.

If you would like your name to appear in the THANKS file, I will need the name you wish to appear there since I could not find it on your profile. If you wish to stay anonymous that is ok too :)