view .dir-locals.el @ 22740:3b2a30e9e49f

build: Fix building when '--without-opengl' option given (bug #49561). * gl-render.cc (draw_axes_x_grid, draw_axes_y_grid): Wrap body of functions with '#if defined (HAVE_OPENGL)' since they contain OpenGL function calls.
author Rik <rik@octave.org>
date Tue, 08 Nov 2016 15:55:10 -0800
parents 9ff04de067ce
children df203b20cfc6
line wrap: on
line source

((nil .
      ((c-file-style . "gnu")
       (indent-tabs-mode . nil)
       (fill-column . 72)
       (eval . (when (and (buffer-file-name)
                          (string-match-p "\\.h\\'" (buffer-file-name))
                          (not (string-match-p "/gnulib/" (buffer-file-name))))
                 (c++-mode)
                 (c-set-style "gnu")))))
 (change-log-mode . ((indent-tabs-mode . t)))
 (makefile-mode . ((indent-tabs-mode . t))))