Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Use rand() in quicksort.h for Windows #5193

Closed
wants to merge 2 commits into from

Conversation

HuidaeCho
Copy link
Member

This PR resolves the following error using MSVC on Windows by using rand() (switched #ifdef __MINGW32__ to #ifdef _WIN32):

build\output\lib\grass85\include\grass\iostream\quicksort.h(62,22): error C3861: 'random': identifier not found

@HuidaeCho HuidaeCho self-assigned this Feb 23, 2025
@HuidaeCho HuidaeCho changed the title quicksort.h: Use rand() on Windows Windows: Use rand() in quicksort.h for Windows Feb 23, 2025
@HuidaeCho HuidaeCho added the windows Microsoft Windows specific label Feb 23, 2025
@HuidaeCho
Copy link
Member Author

Define random() in msvc/stdlib.h. Close it.

@HuidaeCho HuidaeCho closed this Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries windows Microsoft Windows specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant