Commit 23518374 authored by paroga@webkit.org's avatar paroga@webkit.org

2011-03-27 Patrick Gansterer <paroga@webkit.org>

        Reviewed by Andreas Kling.

        Fix agentOS() in FrameLoaderClientEfl
        https://bugs.webkit.org/show_bug.cgi?id=57177

        Replace old PLATFORM macro with OS and CPU.

        * WebCoreSupport/FrameLoaderClientEfl.cpp:
        (WebCore::agentOS):

git-svn-id: svn://svn.chromium.org/blink/trunk@82072 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 9cac6566
2011-03-27 Patrick Gansterer <paroga@webkit.org>
Reviewed by Andreas Kling.
Fix agentOS() in FrameLoaderClientEfl
https://bugs.webkit.org/show_bug.cgi?id=57177
Replace old PLATFORM macro with OS and CPU.
* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::agentOS):
2011-03-27 Patrick Gansterer <paroga@webkit.org>
Reviewed by Andreas Kling.
......
......@@ -56,8 +56,10 @@
#include <wtf/text/CString.h>
#include <wtf/text/StringConcatenate.h>
#if PLATFORM(UNIX)
#if OS(UNIX)
#include <sys/utsname.h>
#elif OS(WINDOWS)
#include "SystemInfo.h"
#endif
#include <Ecore_Evas.h>
......@@ -78,21 +80,20 @@ FrameLoaderClientEfl::FrameLoaderClientEfl(Evas_Object *view)
static String agentOS()
{
#if PLATFORM(DARWIN)
#if PLATFORM(X86)
#if OS(DARWIN)
#if CPU(X86)
return "Intel Mac OS X";
#else
return "PPC Mac OS X";
#endif
#elif PLATFORM(UNIX)
#elif OS(UNIX)
struct utsname name;
if (uname(&name) != -1)
return makeString(name.sysname, ' ', name.machine);
return "Unknown";
#elif PLATFORM(WIN_OS)
// FIXME: Compute the Windows version
return "Windows";
#elif OS(WINDOWS)
return windowsVersionForUAString();
#else
notImplemented();
return "Unknown";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment