summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-04-11 01:14:29 +0200
committerBastien Guerry <bzg@altern.org>2012-04-11 01:14:29 +0200
commit3523533e502f62259c982ac6efaf30fd5962fa64 (patch)
tree0f52beeec5a30b4b43db015dd0e552e1416ada2d
parent56bd9dc55229e25cdae32ef02b4ac96b4d0a68b4 (diff)
parent6c1b38182b377c397c50f11bc86eca145d9cc5c2 (diff)
downloadorg-mode-3523533e502f62259c982ac6efaf30fd5962fa64.tar.gz
Merge branch 'hotfix-7.8.06' of orgmode.org:org-mode into hotfix
-rw-r--r--lisp/ob-C.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-C.el b/lisp/ob-C.el
index 5f6c1cb..583510a 100644
--- a/lisp/ob-C.el
+++ b/lisp/ob-C.el
@@ -152,7 +152,7 @@ it's header arguments."
"Wrap body in a \"main\" function call if none exists."
(if (string-match "^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*)" body)
body
- (format "int main() {\n%s\n}\n" body)))
+ (format "int main() {\n%s\nreturn(0);\n}\n" body)))
(defun org-babel-prep-session:C (session params)
"This function does nothing as C is a compiled language with no