1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 18:57:35 +00:00

osdep: Change timer_name to a saner type

timer_name was a (non-const) pointer to a const char array. Make the
symbol the array itself.
This commit is contained in:
Uoti Urpala 2008-04-28 11:25:49 +03:00
parent e5fab9566d
commit c693b77e93
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
static double relative_time, startup_time;
static double timebase_ratio;
const char *timer_name = "Darwin accurate";
const char timer_name[] = "Darwin accurate";

View File

@ -9,7 +9,7 @@
#include <sys/time.h>
#include "config.h"
const char *timer_name =
const char timer_name[] =
#ifdef HAVE_NANOSLEEP
"nanosleep()";
#else

View File

@ -4,7 +4,7 @@
#include <mmsystem.h>
#include "timer.h"
const char *timer_name = "Windows native";
const char timer_name[] = "Windows native";
// Returns current time in microseconds
unsigned int GetTimer(){

View File

@ -1,7 +1,7 @@
#ifndef MPLAYER_TIMER_H
#define MPLAYER_TIMER_H
extern const char *timer_name;
extern const char timer_name[];
void InitTimer(void);
unsigned int GetTimer(void);