Without the newlines, some compilers will spew warnings such as:
cursor.h:83:37: error: no newline at end of file
(which will break the build due to -Werror, which is default-enabled)
This has been (for example) observed on FreeBSD 9.0's (patched) gcc 4.2.1.
} // namespace view
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_CURSOR_H
\ No newline at end of file
+#endif // PULSEVIEW_PV_VIEW_CURSOR_H
} // namespace view
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_MARKER_H
\ No newline at end of file
+#endif // PULSEVIEW_PV_VIEW_MARKER_H