mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 18:35:41 +01:00 
			
		
		
		
	Merge "stopwatch.h: fix includes"
This commit is contained in:
		| @@ -14,6 +14,8 @@ | |||||||
| #ifndef WEBP_EXAMPLES_STOPWATCH_H_ | #ifndef WEBP_EXAMPLES_STOPWATCH_H_ | ||||||
| #define WEBP_EXAMPLES_STOPWATCH_H_ | #define WEBP_EXAMPLES_STOPWATCH_H_ | ||||||
|  |  | ||||||
|  | #include "webp/types.h" | ||||||
|  |  | ||||||
| #if defined _WIN32 && !defined __GNUC__ | #if defined _WIN32 && !defined __GNUC__ | ||||||
| #include <windows.h> | #include <windows.h> | ||||||
|  |  | ||||||
| @@ -37,6 +39,7 @@ static WEBP_INLINE double StopwatchReadAndReset(Stopwatch* watch) { | |||||||
|  |  | ||||||
|  |  | ||||||
| #else    /* !_WIN32 */ | #else    /* !_WIN32 */ | ||||||
|  | #include <string.h>  // memcpy | ||||||
| #include <sys/time.h> | #include <sys/time.h> | ||||||
|  |  | ||||||
| typedef struct timeval Stopwatch; | typedef struct timeval Stopwatch; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user