• Jon TURNEY's avatar
    Allow DDX to provide a main() · 15febb05
    Jon TURNEY authored
    XQuartz already conditionally renames main() as dix_main() so it can provide
    it's own main().  This isn't the ideal way of doing this, as it prevents libdix
    built this way from being useful with any other DDX.
    
    So instead, always name that function dix_main(), and also provide a stub main()
    which just calls dix_main(), which can be overriden in the DDX.
    
    Add a main() to XWin (XQuartz already has one, of course).
    
    It's no longer neccessary to link XWin and XQuartz with libmain.
    
    v2: Remove unneeded stub main hw/xwin/InitOutput.c
    Signed-off-by: default avatarJon TURNEY <jon.turney@dronecode.org.uk>
    Reviewed-by: Julien Cristau's avatarJulien Cristau <jcristau@debian.org>
    Reviewed-by: default avatarColin Harrison <colin.harrison@virgin.net>
    15febb05
Makefile.am 1.46 KB