Create a small wrapper for setenv() for portability to Windows
Navigation Menu
{{ message }}
googleapis / google-cloud-cpp Public
- Notifications You must be signed in to change notification settings
- Fork 440
Closed
Labels
Milestone
Description
opened
on Dec 13, 2017Some of our tests need to set environment variables. We need a wrapper for ::setenv() as this is a Unix specific call. h/t @mbrukman that we can use this trick from abseil:
#ifdef WIN32 #include <windows.h> #endif #ifdef WIN32 SetEnvironmentVariable(...); #else setenv(...); #endif
Metadata
Metadata
Assignees
Labels
Type
No type
Projects
No projects
Milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions